Class AbstractSortedSet<E>

    • Constructor Detail

      • AbstractSortedSet

        public AbstractSortedSet()
    • Method Detail

      • 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>
        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>
        inclusive - if true, the key will be included in the result, otherwise it will be excluded
      • asSortedSet

        @NotNull
        public java.util.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>