Interface IStructuredSelection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getFirstElement()
      Returns the first element in this selection, or null if the selection is empty.
      java.util.Iterator iterator()
      Returns an iterator over the elements of this selection.
      int size()
      Returns the number of elements selected in this selection.
      java.lang.Object[] toArray()
      Returns the elements in this selection as an array.
      java.util.List toList()
      Returns the elements in this selection as a List.
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getFirstElement

        java.lang.Object getFirstElement()
        Returns the first element in this selection, or null if the selection is empty.
        Returns:
        an element, or null if none
      • iterator

        java.util.Iterator iterator()
        Returns an iterator over the elements of this selection.
        Specified by:
        iterator in interface java.lang.Iterable
        Returns:
        an iterator over the selected elements
      • size

        int size()
        Returns the number of elements selected in this selection.
        Returns:
        the number of elements selected
      • toArray

        java.lang.Object[] toArray()
        Returns the elements in this selection as an array.
        Returns:
        the selected elements as an array
      • toList

        java.util.List toList()
        Returns the elements in this selection as a List.
        Returns:
        the selected elements as a list