Record Class ValidationResult.CollectionIndex
java.lang.Object
java.lang.Record
org.tentackle.validate.ValidationResult.CollectionIndex
- Record Components:
index- the index within the collectionpathPrefix- the leading part of the pathpathPostfix- the trailing part
- All Implemented Interfaces:
Serializable
- Enclosing interface:
ValidationResult
public static record ValidationResult.CollectionIndex(int index, String pathPrefix, String pathPostfix)
extends Record
implements Serializable
A collection index within a validation path
- Author:
- harald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionIndex(int index, String pathPrefix, String pathPostfix) Creates an instance of aCollectionIndexrecord 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.intindex()Returns the value of theindexrecord component.Returns the value of thepathPostfixrecord component.Returns the value of thepathPrefixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CollectionIndex
Creates an instance of aCollectionIndexrecord class.- Parameters:
index- the value for theindexrecord componentpathPrefix- the value for thepathPrefixrecord componentpathPostfix- the value for thepathPostfixrecord component
-
-
Method Details
-
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. -
index
-
pathPrefix
Returns the value of thepathPrefixrecord component.- Returns:
- the value of the
pathPrefixrecord component
-
pathPostfix
Returns the value of thepathPostfixrecord component.- Returns:
- the value of the
pathPostfixrecord component
-