public class PCollectionsImmutableNavigableSet<E> extends Object implements ImmutableNavigableSet<E>
Constructor and Description |
---|
PCollectionsImmutableNavigableSet(org.pcollections.TreePSet<E> underlying) |
public PCollectionsImmutableNavigableSet(org.pcollections.TreePSet<E> underlying)
public static <E extends Comparable<? super E>> PCollectionsImmutableNavigableSet<E> empty()
empty
in interface ImmutableNavigableSet<E>
empty
in interface ImmutableSet<E>
E
- the element typepublic static <E extends Comparable<? super E>> PCollectionsImmutableNavigableSet<E> singleton(E e)
singleton
in interface ImmutableNavigableSet<E>
singleton
in interface ImmutableSet<E>
E
- the element typee
- the elementpublic PCollectionsImmutableNavigableSet<E> added(E e)
added
in interface ImmutableNavigableSet<E>
added
in interface ImmutableSet<E>
e
- the elementpublic PCollectionsImmutableNavigableSet<E> removed(E e)
removed
in interface ImmutableNavigableSet<E>
removed
in interface ImmutableSet<E>
e
- the elementpublic E lower(E e)
lower
in interface NavigableSet<E>
public E floor(E e)
floor
in interface NavigableSet<E>
public E ceiling(E e)
ceiling
in interface NavigableSet<E>
public E higher(E e)
higher
in interface NavigableSet<E>
public E pollFirst()
pollFirst
in interface NavigableSet<E>
public E pollLast()
pollLast
in interface NavigableSet<E>
public PCollectionsImmutableNavigableSet<E> descendingSet()
descendingSet
in interface NavigableSet<E>
public Iterator<E> descendingIterator()
descendingIterator
in interface NavigableSet<E>
public PCollectionsImmutableNavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface NavigableSet<E>
public PCollectionsImmutableNavigableSet<E> headSet(E toElement, boolean inclusive)
headSet
in interface NavigableSet<E>
public PCollectionsImmutableNavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet
in interface NavigableSet<E>
public Comparator<? super E> comparator()
comparator
in interface SortedSet<E>
public PCollectionsImmutableNavigableSet<E> subSet(E fromElement, E toElement)
public PCollectionsImmutableNavigableSet<E> headSet(E toElement)
public PCollectionsImmutableNavigableSet<E> tailSet(E fromElement)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean addAll(Collection<? extends E> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public boolean removeIf(Predicate<? super E> filter)
removeIf
in interface Collection<E>
public void clear()
public Spliterator<E> spliterator()
spliterator
in interface Iterable<E>
spliterator
in interface Collection<E>
spliterator
in interface Set<E>
spliterator
in interface SortedSet<E>
public Stream<E> stream()
stream
in interface Collection<E>
public Stream<E> parallelStream()
parallelStream
in interface Collection<E>
public boolean equals(Object o)
public int hashCode()