Record Class PathSegment
java.lang.Object
java.lang.Record
dev.hogwai.dynamodb.simplified.internal.PathSegment
- Record Components:
name- the attribute nameindexSuffix- the bracket-index suffix (e.g.,[0]), ornull
-
Constructor Summary
ConstructorsConstructorDescriptionPathSegment(String name, String indexSuffix) Creates an instance of aPathSegmentrecord 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.booleanhasIndex()Returnstrueif this segment has a list index suffix.Returns the bracket-index suffix (e.g.,[0]), ornull.name()Returns the attribute name.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PathSegment
Creates an instance of aPathSegmentrecord class.- Parameters:
name- the value for thenamerecord componentindexSuffix- the value for theindexSuffixrecord component
-
-
Method Details
-
name
-
indexSuffix
Returns the bracket-index suffix (e.g.,[0]), ornull.- Returns:
- the index suffix, or
nullif this segment has no index
-
hasIndex
public boolean hasIndex()Returnstrueif this segment has a list index suffix.- Returns:
trueif this is an indexed segment
-
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).
-