Record Class BeanPath.MapKeySegment
java.lang.Object
java.lang.Record
cloud.opencode.base.core.bean.BeanPath.MapKeySegment
- Record Components:
value- the raw segment text | 原始段文本key- the map key | Map 键
- All Implemented Interfaces:
BeanPath.PathSegment
- Enclosing class:
BeanPath
public static record BeanPath.MapKeySegment(String value, String key)
extends Record
implements BeanPath.PathSegment
Map key segment | Map 键段
- Since:
- JDK 25, opencode-base-core V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionMapKeySegment(String value, String key) Creates an instance of aMapKeySegmentrecord 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.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
MapKeySegment
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfaceBeanPath.PathSegment- Returns:
- the value of the
valuerecord component
-
key
-