Record Class ArtifactComparator.ComparisonData
java.lang.Object
java.lang.Record
org.eclipse.tycho.artifactcomparator.ArtifactComparator.ComparisonData
- Enclosing interface:
- ArtifactComparator
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonData(List<String> ignoredPattern, boolean writeDelta) ComparisonData(List<String> ignoredPattern, boolean writeDelta, boolean showDiffDetails) Creates an instance of aComparisonDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theignoredPatternrecord component.booleanReturns the value of theshowDiffDetailsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewriteDeltarecord component.
-
Constructor Details
-
ComparisonData
-
ComparisonData
Creates an instance of aComparisonDatarecord class.- Parameters:
ignoredPattern- the value for theignoredPatternrecord componentwriteDelta- the value for thewriteDeltarecord componentshowDiffDetails- the value for theshowDiffDetailsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
ignoredPattern
Returns the value of theignoredPatternrecord component.- Returns:
- the value of the
ignoredPatternrecord component
-
writeDelta
public boolean writeDelta()Returns the value of thewriteDeltarecord component.- Returns:
- the value of the
writeDeltarecord component
-
showDiffDetails
public boolean showDiffDetails()Returns the value of theshowDiffDetailsrecord component.- Returns:
- the value of the
showDiffDetailsrecord component
-