Record Class FoundationDriftChecker.Entry
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.FoundationDriftChecker.Entry
- Record Components:
kind- parent or propertyname- the parent coordinates (groupId:artifactId) forFoundationDriftChecker.Kind.PARENT, or the property name forFoundationDriftChecker.Kind.PROPERTYactual- the value found in the project's POM, ornullwhen absentexpected- the value the foundation pins to
- Enclosing class:
FoundationDriftChecker
public static record FoundationDriftChecker.Entry(FoundationDriftChecker.Kind kind, String name, String actual, String expected)
extends Record
One drift comparison result.
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(FoundationDriftChecker.Kind kind, String name, String actual, String expected) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactual()Returns the value of theactualrecord component.final booleanIndicates whether some other object is "equal to" this one.expected()Returns the value of theexpectedrecord component.final inthashCode()Returns a hash code value for this object.booleanTrue when this entry indicates real drift the operator should act on (DIFFERS or ABSENT).kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.state()Classify this comparison.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
state
Classify this comparison.- Returns:
- whether the project is aligned, missing the value, or differs from the foundation
-
isDrifted
public boolean isDrifted()True when this entry indicates real drift the operator should act on (DIFFERS or ABSENT).- Returns:
- true when not aligned
-
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
-
name
-
actual
-
expected
-