Record Class JFieldLocation
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.location.JFieldLocation
- All Implemented Interfaces:
honeyroasted.almonds.SimpleName
public record JFieldLocation(String name, JClassLocation containing)
extends Record
implements honeyroasted.almonds.SimpleName
-
Constructor Summary
ConstructorsConstructorDescriptionJFieldLocation(String name, JClassLocation containing) Creates an instance of aJFieldLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static JFieldLocationtoString()Returns a string representation of this record class.
-
Constructor Details
-
JFieldLocation
Creates an instance of aJFieldLocationrecord class.- Parameters:
name- the value for thenamerecord componentcontaining- the value for thecontainingrecord component
-
-
Method Details
-
of
-
toString
-
simpleName
- Specified by:
simpleNamein interfacehoneyroasted.almonds.SimpleName
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
containing
Returns the value of thecontainingrecord component.- Returns:
- the value of the
containingrecord component
-