Java java.util NavigableSet fields, constructors, methods, implement or subclass

Example usage for Java java.util NavigableSet fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util NavigableSet.

The text is from its open source code.

Method

booleanadd(E e)
Adds the specified element to this set if it is not already present (optional operation).
booleanaddAll(Collection c)
Adds all of the elements in the specified collection to this set if they're not already present (optional operation).
Eceiling(E e)
Returns the least element in this set greater than or equal to the given element, or null if there is no such element.
voidclear()
Removes all of the elements from this set (optional operation).
booleancontains(Object o)
Returns true if this set contains the specified element.
IteratordescendingIterator()
Returns an iterator over the elements in this set, in descending order.
NavigableSetdescendingSet()
Returns a reverse order view of the elements contained in this set.
Efirst()
Returns the first (lowest) element currently in this set.
Efloor(E e)
Returns the greatest element in this set less than or equal to the given element, or null if there is no such element.
NavigableSetheadSet(E toElement, boolean inclusive)
Returns a view of the portion of this set whose elements are less than (or equal to, if inclusive is true) toElement .
SortedSetheadSet(E toElement)

Equivalent to headSet(toElement, false) .

Ehigher(E e)
Returns the least element in this set strictly greater than the given element, or null if there is no such element.
booleanisEmpty()
Returns true if this set contains no elements.
Iteratoriterator()
Returns an iterator over the elements in this set, in ascending order.
Elast()
Returns the last (highest) element currently in this set.
Elower(E e)
Returns the greatest element in this set strictly less than the given element, or null if there is no such element.
EpollFirst()
Retrieves and removes the first (lowest) element, or returns null if this set is empty.
EpollLast()
Retrieves and removes the last (highest) element, or returns null if this set is empty.
booleanremove(Object o)
Removes the specified element from this set if it is present (optional operation).
booleanremoveAll(Collection c)
Removes from this set all of its elements that are contained in the specified collection (optional operation).
booleanremoveIf(Predicate filter)
Removes all of the elements of this collection that satisfy the given predicate.
booleanretainAll(Collection c)
Retains only the elements in this set that are contained in the specified collection (optional operation).
intsize()
Returns the number of elements in this set (its cardinality).
Streamstream()
Returns a sequential Stream with this collection as its source.
SortedSetsubSet(E fromElement, E toElement)

Equivalent to subSet(fromElement, true, toElement, false) .

NavigableSettailSet(E fromElement, boolean inclusive)
Returns a view of the portion of this set whose elements are greater than (or equal to, if inclusive is true) fromElement .
SortedSettailSet(E fromElement)

Equivalent to tailSet(fromElement, true) .

Object[]toArray()
Returns an array containing all of the elements in this set.