Class AbstractSortedSet<E>

All Implemented Interfaces:
Iterable<E>, Set<E>, SortedSet<E>, Traversable<E>, Iterable<E>
Direct Known Subclasses:
TreeSet

public abstract class AbstractSortedSet<E> extends AbstractSet<E> implements SortedSet<E>
  • Constructor Details

    • AbstractSortedSet

      public AbstractSortedSet()
  • Method Details

    • from

      @NotNull public @NotNull SortedSet<E> from(@NotNull E value, boolean inclusive)
      Description copied from interface: SortedSet
      Returns the bottom of the set starting from the key specified.
      Specified by:
      from in interface SortedSet<E>
      Parameters:
      inclusive - if true, the key will be included in the result, otherwise it will be excluded
    • to

      @NotNull public @NotNull SortedSet<E> to(@NotNull E value, boolean inclusive)
      Description copied from interface: SortedSet
      Returns the top of the set up until the key specified.
      Specified by:
      to in interface SortedSet<E>
      Parameters:
      inclusive - if true, the key will be included in the result, otherwise it will be excluded
    • asSortedSet

      @NotNull public SortedSet<E> asSortedSet()
      Description copied from interface: SortedSet
      Returns an immutable view of this set as an instance of java.util.SortedSet.
      Specified by:
      asSortedSet in interface SortedSet<E>