Package com.google.common.reflect
Class TypeToken.TypeSet
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
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>>
- Direct Known Subclasses:
TypeToken.ClassSet,TypeToken.InterfaceSet
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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate ImmutableSet<TypeToken<? super T>> -
Constructor Summary
Constructors -
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 com.google.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAllMethods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
types
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
TypeSet
TypeSet()
-
-
Method Details
-
interfaces
Returns the types that are interfaces implemented by this type. -
classes
Returns the types that are 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
Returns the raw types of the types in this set, in the same order.
-