java.lang.Object | |
↳ | com.google.inject.util.Types |
Static methods for working with types.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an array type whose elements are all instances of
componentType . | |||||||||||
Returns a type modelling a
List whose elements are of type
elementType . | |||||||||||
Returns a type modelling a
Map whose keys are of type
keyType and whose values are of type valueType . | |||||||||||
Returns a new parameterized type, applying
typeArguments to
rawType . | |||||||||||
Returns a new parameterized type, applying
typeArguments to
rawType and enclosed by ownerType . | |||||||||||
Returns a type modelling a
Provider that provides elements of type
elementType . | |||||||||||
Returns a type modelling a
Set whose elements are of type
elementType . | |||||||||||
Returns a type that represents an unknown type that extends
bound . | |||||||||||
Returns a type that represents an unknown supertype of
bound . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns an array type whose elements are all instances of
componentType
.
serializable
generic array type.
Returns a type modelling a List
whose elements are of type
elementType
.
serializable
parameterized type.
Returns a type modelling a Map
whose keys are of type
keyType
and whose values are of type valueType
.
serializable
parameterized type.
Returns a new parameterized type, applying typeArguments
to
rawType
. The returned type does not have an owner type.
serializable
parameterized type.
Returns a new parameterized type, applying typeArguments
to
rawType
and enclosed by ownerType
.
serializable
parameterized type.
Returns a type modelling a Provider
that provides elements of type
elementType
.
serializable
parameterized type.
Returns a type modelling a Set
whose elements are of type
elementType
.
serializable
parameterized type.
Returns a type that represents an unknown type that extends bound
.
For example, if bound
is CharSequence.class
, this returns
? extends CharSequence
. If bound
is Object.class
,
this returns ?
, which is shorthand for ? extends Object
.
Returns a type that represents an unknown supertype of bound
. For
example, if bound
is String.class
, this returns ?
super String
.