com.ibm.tivoli.maximo.oslc.provider

Class OslcJSONObjectListIterator

  • All Implemented Interfaces:
    java.util.Iterator, java.util.ListIterator


    public class OslcJSONObjectListIterator
    extends ObjectListIterator
    • Constructor Summary

      Constructors 
      Constructor and Description
      OslcJSONObjectListIterator()
      Default Constructor
      OslcJSONObjectListIterator(java.util.ListIterator lt, java.lang.String osName, java.lang.String objectPath, java.lang.String messageType, UserInfo userInfo, boolean leanJson)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.Object o)
      Adds object to iterator
      boolean hasNext()
      Checks if Iterator has next value
      boolean hasPrevious()
      Checks if Iterator has Previous value
      java.lang.Object next()
      Returns next object in iterator
      int nextIndex()
      Return next index
      java.lang.Object previous()
      Returns previous object in iterator
      int previousIndex()
      Return previous index
      void remove()
      Removes from iterator
      void set(java.lang.Object o)
      Sets object to iterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • OslcJSONObjectListIterator

        public OslcJSONObjectListIterator()
        Default Constructor
      • OslcJSONObjectListIterator

        public OslcJSONObjectListIterator(java.util.ListIterator lt,
                                          java.lang.String osName,
                                          java.lang.String objectPath,
                                          java.lang.String messageType,
                                          UserInfo userInfo,
                                          boolean leanJson)
        Constructor
        Parameters:
        it - Original ListIterator.
    • Method Detail

      • nextIndex

        public int nextIndex()
        Return next index
        Specified by:
        nextIndex in interface java.util.ListIterator
        Overrides:
        nextIndex in class ObjectListIterator
        Returns:
        next index
      • previousIndex

        public int previousIndex()
        Return previous index
        Specified by:
        previousIndex in interface java.util.ListIterator
        Overrides:
        previousIndex in class ObjectListIterator
        Returns:
        previous index
      • remove

        public void remove()
        Removes from iterator
        Specified by:
        remove in interface java.util.Iterator
        Specified by:
        remove in interface java.util.ListIterator
        Overrides:
        remove in class ObjectListIterator
      • hasNext

        public boolean hasNext()
        Checks if Iterator has next value
        Specified by:
        hasNext in interface java.util.Iterator
        Specified by:
        hasNext in interface java.util.ListIterator
        Overrides:
        hasNext in class ObjectListIterator
        Returns:
        true or false
      • hasPrevious

        public boolean hasPrevious()
        Checks if Iterator has Previous value
        Specified by:
        hasPrevious in interface java.util.ListIterator
        Overrides:
        hasPrevious in class ObjectListIterator
        Returns:
        true or false
      • next

        public java.lang.Object next()
        Returns next object in iterator
        Specified by:
        next in interface java.util.Iterator
        Specified by:
        next in interface java.util.ListIterator
        Overrides:
        next in class ObjectListIterator
        Returns:
        next object in iterator
      • previous

        public java.lang.Object previous()
        Returns previous object in iterator
        Specified by:
        previous in interface java.util.ListIterator
        Overrides:
        previous in class ObjectListIterator
        Returns:
        previous object in iterator
      • add

        public void add(java.lang.Object o)
        Adds object to iterator
        Specified by:
        add in interface java.util.ListIterator
        Overrides:
        add in class ObjectListIterator
        Parameters:
        o - object to add
      • set

        public void set(java.lang.Object o)
        Sets object to iterator
        Specified by:
        set in interface java.util.ListIterator
        Overrides:
        set in class ObjectListIterator
        Parameters:
        o - object to set