Class PropertyIteratorAdapter

  • All Implemented Interfaces:
    java.util.Iterator, javax.jcr.PropertyIterator, javax.jcr.RangeIterator

    public class PropertyIteratorAdapter
    extends RangeIteratorDecorator
    implements javax.jcr.PropertyIterator
    Adapter class for turning RangeIterators or Iterators into PropertyIterators.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.jcr.PropertyIterator EMPTY
      Static instance of an empty PropertyIterator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.jcr.Property nextProperty()
      Returns the next property.
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, hasNext, next, remove
      • Methods inherited from interface javax.jcr.RangeIterator

        getPosition, getSize, skip
    • Field Detail

      • EMPTY

        public static final javax.jcr.PropertyIterator EMPTY
        Static instance of an empty PropertyIterator.
    • Constructor Detail

      • PropertyIteratorAdapter

        public PropertyIteratorAdapter​(javax.jcr.RangeIterator iterator)
        Creates an adapter for the given RangeIterator.
        Parameters:
        iterator - iterator of Property instances
      • PropertyIteratorAdapter

        public PropertyIteratorAdapter​(java.util.Iterator iterator)
        Creates an adapter for the given Iterator.
        Parameters:
        iterator - iterator of Property instances
      • PropertyIteratorAdapter

        public PropertyIteratorAdapter​(java.util.Iterator iterator,
                                       long size)
      • PropertyIteratorAdapter

        public PropertyIteratorAdapter​(java.util.Collection collection)
        Creates an iterator for the given collection.
        Parameters:
        collection - collection of Property instances
    • Method Detail

      • nextProperty

        public javax.jcr.Property nextProperty()
        Returns the next property.
        Specified by:
        nextProperty in interface javax.jcr.PropertyIterator
        Returns:
        next property
        Throws:
        java.util.NoSuchElementException - if there is no next property