Class ImmutableSortedSet<T> (3.21.4)

public class ImmutableSortedSet<T> implements Iterable<T>

Inheritance

Object > ImmutableSortedSet<T>

Implements

Iterable<T>

Type Parameter

Name Description
T

Constructors

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

public ImmutableSortedSet(List<T> elems, Comparator<T> comparator)
Parameters
Name Description
elems List<T>
comparator Comparator<T>

Methods

contains(T entry)

public boolean contains(T entry)
Parameter
Name Description
entry T
Returns
Type Description
boolean

equals(Object other)

public boolean equals(Object other)
Parameter
Name Description
other Object
Returns
Type Description
boolean
Overrides

getMaxEntry()

public T getMaxEntry()
Returns
Type Description
T

getMinEntry()

public T getMinEntry()
Returns
Type Description
T

getPredecessorEntry(T entry)

public T getPredecessorEntry(T entry)
Parameter
Name Description
entry T
Returns
Type Description
T

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

indexOf(T entry)

public int indexOf(T entry)
Parameter
Name Description
entry T
Returns
Type Description
int

insert(T entry)

public ImmutableSortedSet<T> insert(T entry)
Parameter
Name Description
entry T
Returns
Type Description
ImmutableSortedSet<T>

isEmpty()

public boolean isEmpty()
Returns
Type Description
boolean

iterator()

public Iterator<T> iterator()
Returns
Type Description
Iterator<T>

iteratorFrom(T entry)

public Iterator<T> iteratorFrom(T entry)
Parameter
Name Description
entry T
Returns
Type Description
Iterator<T>

remove(T entry)

public ImmutableSortedSet<T> remove(T entry)
Parameter
Name Description
entry T
Returns
Type Description
ImmutableSortedSet<T>

reverseIterator()

public Iterator<T> reverseIterator()
Returns
Type Description
Iterator<T>

reverseIteratorFrom(T entry)

public Iterator<T> reverseIteratorFrom(T entry)
Parameter
Name Description
entry T
Returns
Type Description
Iterator<T>

size()

public int size()
Returns
Type Description
int