Interface Sequence<T extends Item>

  • Type Parameters:
    T - extends <Item>
    All Superinterfaces:
    java.lang.Iterable<T>
    All Known Subinterfaces:
    NodeSequence, PropertySequence

    public interface Sequence<T extends Item>
    extends java.lang.Iterable<T>
    Interface for accessing JCR Items sequentially through an Iterator or looking them up through a key.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getItem​(java.lang.String key)
      Retrieve an Item from this sequence by its key.
      boolean hasItem​(java.lang.String key)
      Determine whether this sequence contains a specific key.
      java.util.Iterator<T> iterator()
      Iterator for the Items in this sequence.
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator