Record Class StringPath.CaseSensitiveStringPath.AlignmentResult
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.StringPath.CaseSensitiveStringPath.AlignmentResult
- Record Components:
alignedPath- The aligned pathhasConflict- A conflict occurs when any subpath matches in a case-insensitive manner to the path to align to.
- Enclosing class:
- StringPath.CaseSensitiveStringPath
public static record StringPath.CaseSensitiveStringPath.AlignmentResult(StringPath.CaseSensitiveStringPath alignedPath, boolean hasConflict)
extends Record
Result of an alignment operation.
-
Constructor Summary
ConstructorsConstructorDescriptionAlignmentResult(StringPath.CaseSensitiveStringPath alignedPath, boolean hasConflict) Creates an instance of aAlignmentResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealignedPathrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasConflictrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AlignmentResult
Creates an instance of aAlignmentResultrecord class.- Parameters:
alignedPath- the value for thealignedPathrecord componenthasConflict- the value for thehasConflictrecord 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 '=='. -
alignedPath
Returns the value of thealignedPathrecord component.- Returns:
- the value of the
alignedPathrecord component
-
hasConflict
public boolean hasConflict()Returns the value of thehasConflictrecord component.- Returns:
- the value of the
hasConflictrecord component
-