Record Class ParsedConstantPoolEvidence
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedConstantPoolEvidence
public record ParsedConstantPoolEvidence(List<ParsedConstantEvidence> constants, int originalEvidenceCount, boolean truncated)
extends Record
Bounded relevant constant-pool evidence for one class file.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParsedConstantPoolEvidence(List<ParsedConstantEvidence> constants, int originalEvidenceCount, boolean truncated) Creates an instance of aParsedConstantPoolEvidencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstantsrecord component.static ParsedConstantPoolEvidenceempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoriginalEvidenceCountrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Field Details
-
MAXIMUM_CONSTANTS
public static final int MAXIMUM_CONSTANTS- See Also:
-
-
Constructor Details
-
ParsedConstantPoolEvidence
public ParsedConstantPoolEvidence(List<ParsedConstantEvidence> constants, int originalEvidenceCount, boolean truncated) Creates an instance of aParsedConstantPoolEvidencerecord class.- Parameters:
constants- the value for theconstantsrecord componentoriginalEvidenceCount- the value for theoriginalEvidenceCountrecord componenttruncated- the value for thetruncatedrecord component
-
-
Method Details
-
empty
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
constants
Returns the value of theconstantsrecord component.- Returns:
- the value of the
constantsrecord component
-
originalEvidenceCount
public int originalEvidenceCount()Returns the value of theoriginalEvidenceCountrecord component.- Returns:
- the value of the
originalEvidenceCountrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-