Record Class ClassFileOrigin
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ClassFileOrigin
- All Implemented Interfaces:
Comparable<ClassFileOrigin>
public record ClassFileOrigin(ClassFileInput.Kind kind, String input, String entry)
extends Record
implements Comparable<ClassFileOrigin>
Stable provenance for one class-file resource.
-
Constructor Summary
ConstructorsConstructorDescriptionClassFileOrigin(ClassFileInput.Kind kind, String input, String entry) Creates an instance of aClassFileOriginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ClassFileOrigin other) entry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassFileOrigin
Creates an instance of aClassFileOriginrecord class.- Parameters:
kind- the value for thekindrecord componentinput- the value for theinputrecord componententry- the value for theentryrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ClassFileOrigin>
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-