Class GenericMetadataSupport.WildCardBoundedType
java.lang.Object
org.mockito.internal.util.reflection.GenericMetadataSupport.WildCardBoundedType
- All Implemented Interfaces:
Type
,GenericMetadataSupport.BoundedType
- Enclosing class:
- GenericMetadataSupport
public static class GenericMetadataSupport.WildCardBoundedType
extends Object
implements GenericMetadataSupport.BoundedType
Type representing bounds of a wildcard, allows to keep all bounds information.
The JLS says that lower bound and upper bound are mutually exclusive, and that multiple bounds are not allowed.
-
Field Details
-
wildcard
-
-
Constructor Details
-
WildCardBoundedType
-
-
Method Details
-
firstBound
- Specified by:
firstBound
in interfaceGenericMetadataSupport.BoundedType
- Returns:
- The first bound, either a type or a reference to a TypeVariable
-
interfaceBounds
- Specified by:
interfaceBounds
in interfaceGenericMetadataSupport.BoundedType
- Returns:
- An empty array as, wildcard don't support multiple bounds.
-
equals
-
hashCode
public int hashCode() -
toString
-
wildCard
-