Package com.axelor.meta.headless
Record Class FormPath.Segment
java.lang.Object
java.lang.Record
com.axelor.meta.headless.FormPath.Segment
- Record Components:
collection- the collection fieldkind- how the line is namedvalue- the id, the cid (negative) or the position
- Enclosing class:
FormPath
public static record FormPath.Segment(String collection, FormPath.Kind kind, long value)
extends Record
One step down the tree: a line of a collection of the node above.
-
Constructor Summary
ConstructorsConstructorDescriptionSegment(String collection, FormPath.Kind kind, long value) Creates an instance of aSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.toString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Segment
Creates an instance of aSegmentrecord class.- Parameters:
collection- the value for thecollectionrecord componentkind- the value for thekindrecord componentvalue- the value for thevaluerecord 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 '=='. -
collection
Returns the value of thecollectionrecord component.- Returns:
- the value of the
collectionrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-