@InternalApi public class ImmutableSortedSet<T> extends Object implements Iterable<T>
Constructor and Description |
---|
ImmutableSortedSet(List<T> elems,
Comparator<T> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T entry) |
boolean |
equals(Object other) |
T |
getMaxEntry() |
T |
getMinEntry() |
T |
getPredecessorEntry(T entry) |
int |
hashCode() |
int |
indexOf(T entry) |
ImmutableSortedSet<T> |
insert(T entry) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
Iterator<T> |
iteratorFrom(T entry) |
ImmutableSortedSet<T> |
remove(T entry) |
Iterator<T> |
reverseIterator() |
Iterator<T> |
reverseIteratorFrom(T entry) |
int |
size() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ImmutableSortedSet(List<T> elems, Comparator<T> comparator)
public boolean contains(T entry)
public ImmutableSortedSet<T> remove(T entry)
public ImmutableSortedSet<T> insert(T entry)
public T getMinEntry()
public T getMaxEntry()
public int size()
public boolean isEmpty()
public int indexOf(T entry)
Copyright © 2019 Google LLC. All rights reserved.