Class TypeTag
java.lang.Object
nl.jqno.equalsverifier.internal.prefabvalues.TypeTag
Represents a generic type, including raw type and generic type parameters.
If the type is not generic, the genericTypes list will be empty.
-
Field Details
-
NULL
Null object for TypeTag.
-
-
Constructor Details
-
TypeTag
Constructor.- Parameters:
type
- The raw type.genericTypes
- A list of TypeTags for each generic type parameter.
-
-
Method Details
-
of
Resolves a TypeTag from the type of aField
instance, using an enclosing type to determine any generic parameters the field may contain.- Parameters:
field
- The field to resolve.enclosingType
- The type that contains the field, used to determine any generic parameters it may contain.- Returns:
- The TypeTag for the given field.
-
getType
- Type Parameters:
T
- The returnedClass
will have this generic type.- Returns:
- The TypeTag's raw type.
-
getGenericTypes
- Returns:
- The TypeTag's generic types.
-
equals
-
hashCode
public int hashCode() -
toString
-