Record Class JavaInnerClassEvidence
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaInnerClassEvidence
- All Implemented Interfaces:
Comparable<JavaInnerClassEvidence>
public record JavaInnerClassEvidence(JavaTypeName innerType, Optional<JavaTypeName> outerType, Optional<String> simpleName, int accessFlags)
extends Record
implements Comparable<JavaInnerClassEvidence>
One library-owned InnerClasses entry; it is evidence, not inferred source nesting.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaInnerClassEvidence(JavaTypeName innerType, Optional<JavaTypeName> outerType, Optional<String> simpleName, int accessFlags) Creates an instance of aJavaInnerClassEvidencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccessFlagsrecord component.intcompareTo(JavaInnerClassEvidence other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerTyperecord component.Returns the value of theouterTyperecord component.Returns the value of thesimpleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaInnerClassEvidence
public JavaInnerClassEvidence(JavaTypeName innerType, Optional<JavaTypeName> outerType, Optional<String> simpleName, int accessFlags) Creates an instance of aJavaInnerClassEvidencerecord class.- Parameters:
innerType- the value for theinnerTyperecord componentouterType- the value for theouterTyperecord componentsimpleName- the value for thesimpleNamerecord componentaccessFlags- the value for theaccessFlagsrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaInnerClassEvidence>
-
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. -
innerType
Returns the value of theinnerTyperecord component.- Returns:
- the value of the
innerTyperecord component
-
outerType
Returns the value of theouterTyperecord component.- Returns:
- the value of the
outerTyperecord component
-
simpleName
-
accessFlags
public int accessFlags()Returns the value of theaccessFlagsrecord component.- Returns:
- the value of the
accessFlagsrecord component
-