Class TypeToken.TypeSet

All Implemented Interfaces:
Serializable, Iterable<TypeToken<? super T>>, Collection<TypeToken<? super T>>, Set<TypeToken<? super T>>
Enclosing class:
TypeToken<T>

public class TypeToken.TypeSet extends ForwardingSet<TypeToken<? super T>> implements Serializable
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 Details

    • interfaces

      public TypeToken<T>.TypeSet interfaces()
      Returns the types that are interfaces implemented by this type.
    • classes

      public TypeToken<T>.TypeSet classes()
      Returns the types that are classes.
    • delegate

      protected Set<TypeToken<? super T>> delegate()
      Description copied from class: ForwardingObject
      Returns 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 as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
      Specified by:
      delegate in class ForwardingSet<TypeToken<? super T>>
    • rawTypes

      public Set<Class<? super T>> rawTypes()
      Returns the raw types of the types in this set, in the same order.