Record Class JClassNamespace
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.location.JClassNamespace
- All Implemented Interfaces:
JGenericDeclarationLocation
public record JClassNamespace(JClassLocation location, JClassName name)
extends Record
implements JGenericDeclarationLocation
-
Constructor Summary
ConstructorsConstructorDescriptionJClassNamespace(JClassLocation location, JClassName name) Creates an instance of aJClassNamespacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.name()Returns the value of thenamerecord component.static JClassNamespacetoString()Returns a string representation of this record class.
-
Constructor Details
-
JClassNamespace
Creates an instance of aJClassNamespacerecord class.- Parameters:
location- the value for thelocationrecord componentname- the value for thenamerecord component
-
-
Method Details
-
of
-
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). -
hashCode
-
toString
-
containingClass
- Specified by:
containingClassin interfaceJGenericDeclarationLocation
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-