Record Class JavaConstantLoadSite
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaConstantLoadSite
- All Implemented Interfaces:
Comparable<JavaConstantLoadSite>
public record JavaConstantLoadSite(JavaMemberSignature owner, BytecodeLocation location)
extends Record
implements Comparable<JavaConstantLoadSite>
Exact member and bytecode location that loaded a class literal.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaConstantLoadSite(JavaMemberSignature owner, BytecodeLocation location) Creates an instance of aJavaConstantLoadSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaConstantLoadSite other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaConstantLoadSite
Creates an instance of aJavaConstantLoadSiterecord class.- Parameters:
owner- the value for theownerrecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaConstantLoadSite>
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-