Class TypeToken.TypeSet
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<TypeToken<? super T>>
com.google.common.collect.ForwardingSet<TypeToken<? super T>>
com.google.common.reflect.TypeToken.TypeSet
- All Implemented Interfaces:
Serializable, Iterable<TypeToken<? super T>>, Collection<TypeToken<? super T>>, Set<TypeToken<? super T>>
The set of interfaces and classes that
T is or is a subtype of. Object is not
included in the set if this type is an interface.- Since:
- 13.0
- Author:
- Bob Lee, Sven Mawson, Ben Yu
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclasses()Returns the types that are classes.delegate()Returns the backing delegate instance that methods are forwarded to.Returns the types that are interfaces implemented by this type.rawTypes()Returns the raw types of the types in this set, in the same order.Methods inherited from class ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAllModifier and TypeMethodDescriptionbooleaninthashCode()protected booleanstandardEquals(@Nullable Object object) A sensible definition ofForwardingSet.equals(Object)in terms ofForwardingCollection.size()andForwardingCollection.containsAll(Collection).protected intA sensible definition ofForwardingSet.hashCode()in terms ofForwardingCollection.iterator().protected booleanstandardRemoveAll(Collection<?> collection) A sensible definition ofForwardingCollection.removeAll(Collection)in terms ofForwardingCollection.iterator()andForwardingCollection.remove(Object).Methods inherited from class ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayModifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends TypeToken<? super T>> collection) voidclear()booleanbooleancontainsAll(Collection<?> collection) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) intsize()protected booleanstandardAddAll(Collection<? extends TypeToken<? super T>> collection) A sensible definition ofForwardingCollection.addAll(Collection)in terms ofForwardingCollection.add(E).protected voidA sensible definition ofForwardingCollection.clear()in terms ofForwardingCollection.iterator(), using the iterator'sremovemethod.protected booleanstandardContains(@Nullable Object object) A sensible definition ofForwardingCollection.contains(Object)in terms ofForwardingCollection.iterator().protected booleanstandardContainsAll(Collection<?> collection) A sensible definition ofForwardingCollection.containsAll(Collection)in terms ofForwardingCollection.contains(Object).protected booleanA sensible definition ofForwardingCollection.isEmpty()as!iterator().hasNext.protected booleanstandardRemove(@Nullable Object object) A sensible definition ofForwardingCollection.remove(Object)in terms ofForwardingCollection.iterator(), using the iterator'sremovemethod.protected booleanstandardRetainAll(Collection<?> collection) A sensible definition ofForwardingCollection.retainAll(Collection)in terms ofForwardingCollection.iterator(), using the iterator'sremovemethod.A sensible definition ofForwardingCollection.toArray()in terms ofForwardingCollection.toArray(Object[]).standardToArray(T[] array) A sensible definition ofForwardingCollection.toArray(Object[])in terms ofForwardingCollection.size()andForwardingCollection.iterator().protected StringA sensible definition ofForwardingObject.toString()in terms ofForwardingCollection.iterator().toArray()toArray(T[] array) Methods inherited from class ForwardingObject
toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
interfaces
-
classes
-
delegate
Description copied from class:ForwardingObjectReturns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.- Specified by:
delegatein classForwardingSet<TypeToken<? super T>>
-
rawTypes
-