Class ImmutableSortedSet<T> (3.14.4)

public class ImmutableSortedSet<T> implements Iterable<T>

Inheritance

Object > ImmutableSortedSet<T>

Implements

Iterable<T>

Type Parameter

NameDescription
T

Constructors

ImmutableSortedSet(List<T> elems, Comparator<T> comparator)

public ImmutableSortedSet(List<T> elems, Comparator<T> comparator)
Parameters
NameDescription
elemsList<T>
comparatorComparator<T>

Methods

contains(T entry)

public boolean contains(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
boolean

equals(Object other)

public boolean equals(Object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
boolean
Overrides

getMaxEntry()

public T getMaxEntry()
Returns
TypeDescription
T

getMinEntry()

public T getMinEntry()
Returns
TypeDescription
T

getPredecessorEntry(T entry)

public T getPredecessorEntry(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
T

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

indexOf(T entry)

public int indexOf(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
int

insert(T entry)

public ImmutableSortedSet<T> insert(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
ImmutableSortedSet<T>

isEmpty()

public boolean isEmpty()
Returns
TypeDescription
boolean

iterator()

public Iterator<T> iterator()
Returns
TypeDescription
Iterator<T>

iteratorFrom(T entry)

public Iterator<T> iteratorFrom(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
Iterator<T>

remove(T entry)

public ImmutableSortedSet<T> remove(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
ImmutableSortedSet<T>

reverseIterator()

public Iterator<T> reverseIterator()
Returns
TypeDescription
Iterator<T>

reverseIteratorFrom(T entry)

public Iterator<T> reverseIteratorFrom(T entry)
Parameter
NameDescription
entryT
Returns
TypeDescription
Iterator<T>

size()

public int size()
Returns
TypeDescription
int