Class PropertySingleton.Iter

java.lang.Object
org.apache.sis.feature.PropertySingleton.Iter
All Implemented Interfaces:
Iterator<V>
Enclosing class:
PropertySingleton<V>

private final class PropertySingleton.Iter extends Object implements Iterator<V>
Implementation of the iterator returned by PropertySingleton.iterator().
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Initial AbstractList.modCount value, for checks against concurrent modifications.
    private V
    The property value to return, or null if we reached the iteration end.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Iter(V element, int c)
    Creates a new iterator which will return the given attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the singleton attribute has not yet been returned.
    Returns the singleton value, if present.
    void
    Removes the value returned by the last call to next().

    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
  • Field Details

    • element

      private V element
      The property value to return, or null if we reached the iteration end.
    • c

      private final int c
      Initial AbstractList.modCount value, for checks against concurrent modifications.
  • Constructor Details

    • Iter

      Iter(V element, int c)
      Creates a new iterator which will return the given attribute.
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if the singleton attribute has not yet been returned.
      Specified by:
      hasNext in interface Iterator<V>
    • next

      public V next()
      Returns the singleton value, if present.
      Specified by:
      next in interface Iterator<V>
    • remove

      public void remove()
      Removes the value returned by the last call to next().
      Specified by:
      remove in interface Iterator<V>