Interface SmartSequence<E>

    • Method Detail

      • pred

        @Nullable ElementReference pred​(ElementReference ref)
        Retrieves the reference to the preceding element, or null if the given reference references the first element in the list.
        Parameters:
        ref - the reference
        Returns:
        the reference to the preceding element
      • succ

        @Nullable ElementReference succ​(ElementReference ref)
        Retrieves the reference to the succeeding element, or null if the given reference references the last element in the list.
        Parameters:
        ref - the reference
        Returns:
        the reference to the succeeding element
      • insertBefore

        ElementReference insertBefore​(E element,
                                      ElementReference ref)
        Inserts the given element before the element referenced by the specified reference.
        Parameters:
        element - the element to be added.
        ref - reference to the element before which the new element is to be inserted.
        Returns:
        reference to the newly added element.
      • insertAfter

        ElementReference insertAfter​(E element,
                                     ElementReference ref)
        Inserts the given element after the element referenced by the specified reference.
        Parameters:
        element - the element to be added.
        ref - reference to the element after which the new element is to be inserted.
        Returns:
        reference to the newly added element.