Record Class BeanPath.PropertySegment
java.lang.Object
java.lang.Record
cloud.opencode.base.core.bean.BeanPath.PropertySegment
- Record Components:
value- the property name | 属性名
- All Implemented Interfaces:
BeanPath.PathSegment
- Enclosing class:
BeanPath
public static record BeanPath.PropertySegment(String value)
extends Record
implements BeanPath.PathSegment
Property segment | 属性段
- Since:
- JDK 25, opencode-base-core V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionPropertySegment(String value) Creates an instance of aPropertySegmentrecord 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.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PropertySegment
-
-
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
-