Record Class JSignature.WildType
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.signature.JSignature.WildType
- All Implemented Interfaces:
JSignature,JSignature.InformalType
- Enclosing interface:
JSignature
public static record JSignature.WildType(JSignature.InformalType upper, JSignature.InformalType lower)
extends Record
implements JSignature.InformalType
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jype.metadata.signature.JSignature
JSignature.Array, JSignature.ClassDeclaration, JSignature.Declaration, JSignature.Declared, JSignature.GenericDeclaration, JSignature.InformalType, JSignature.IntersectionType, JSignature.MethodDeclaration, JSignature.Parameterized, JSignature.Type, JSignature.VarType, JSignature.VarTypeDeclaration, JSignature.WildType -
Constructor Summary
ConstructorsConstructorDescriptionWildType(JSignature.InformalType upper, JSignature.InformalType lower) Creates an instance of aWildTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lower()Returns the value of thelowerrecord component.toString()Returns a string representation of this record class.upper()Returns the value of theupperrecord component.
-
Constructor Details
-
WildType
Creates an instance of aWildTyperecord class.- Parameters:
upper- the value for theupperrecord componentlower- the value for thelowerrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
upper
Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-
lower
Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-