Package com.google.gwt.core.ext.linker
Class TypeIndexedSet<T extends Comparable>
java.lang.Object
com.google.gwt.thirdparty.guava.common.collect.ForwardingObject
com.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<E>
com.google.gwt.thirdparty.guava.common.collect.ForwardingSet<E>
com.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet<T>
com.google.gwt.core.ext.linker.TypeIndexedSet<T>
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,Set<T>
,SortedSet<T>
class TypeIndexedSet<T extends Comparable>
extends com.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet<T>
implements Serializable
A SortedSet that maintains an index of its members by concrete type using
a
TypeIndexedSet.TypeIndex
.-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final class
Organizes set members by their concrete type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> c) void
clear()
delegate()
void
freeze()
Prevent further modification of the Set.(package private) TypeIndexedSet.TypeIndex
Returns the type index for the root set, i.e.iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) Methods inherited from class com.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet
comparator, first, last, standardContains, standardRemove, standardSubSet
Methods inherited from class com.google.gwt.thirdparty.guava.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
Methods inherited from class com.google.gwt.thirdparty.guava.common.collect.ForwardingCollection
contains, containsAll, isEmpty, size, standardAddAll, standardClear, standardContainsAll, standardIsEmpty, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
Methods inherited from class com.google.gwt.thirdparty.guava.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray
Methods inherited from interface java.util.SortedSet
spliterator
-
Constructor Details
-
TypeIndexedSet
-
-
Method Details
-
delegate
- Specified by:
delegate
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet<T extends Comparable>
-
getTypeIndex
TypeIndexedSet.TypeIndex getTypeIndex()Returns the type index for the root set, i.e. the set that is not a view of other sets. -
add
- Specified by:
add
in interfaceCollection<T extends Comparable>
- Specified by:
add
in interfaceSet<T extends Comparable>
- Overrides:
add
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends Comparable>
- Specified by:
addAll
in interfaceSet<T extends Comparable>
- Overrides:
addAll
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends Comparable>
- Specified by:
clear
in interfaceSet<T extends Comparable>
- Overrides:
clear
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
freeze
public void freeze()Prevent further modification of the Set. Any attempts to alter the Set after invoking this method will result in an UnsupportedOperationException. -
headSet
- Specified by:
headSet
in interfaceSortedSet<T extends Comparable>
- Overrides:
headSet
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet<T extends Comparable>
-
iterator
- Specified by:
iterator
in interfaceCollection<T extends Comparable>
- Specified by:
iterator
in interfaceIterable<T extends Comparable>
- Specified by:
iterator
in interfaceSet<T extends Comparable>
- Overrides:
iterator
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
remove
- Specified by:
remove
in interfaceCollection<T extends Comparable>
- Specified by:
remove
in interfaceSet<T extends Comparable>
- Overrides:
remove
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends Comparable>
- Specified by:
removeAll
in interfaceSet<T extends Comparable>
- Overrides:
removeAll
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T extends Comparable>
- Specified by:
retainAll
in interfaceSet<T extends Comparable>
- Overrides:
retainAll
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingCollection<T extends Comparable>
-
subSet
- Specified by:
subSet
in interfaceSortedSet<T extends Comparable>
- Overrides:
subSet
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet<T extends Comparable>
-
tailSet
- Specified by:
tailSet
in interfaceSortedSet<T extends Comparable>
- Overrides:
tailSet
in classcom.google.gwt.thirdparty.guava.common.collect.ForwardingSortedSet<T extends Comparable>
-