Package com.variant.share.yaml
Record Class YamlMap
java.lang.Object
java.lang.Record
com.variant.share.yaml.YamlMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.yaml.snakeyaml.error.MarkendMark()Returns the value of theendMarkrecord component.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.yaml.snakeyaml.error.MarkReturns the value of thestartMarkrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
YamlMap
public YamlMap(Map<String, YamlNode<?>> value, org.yaml.snakeyaml.error.Mark startMark, org.yaml.snakeyaml.error.Mark endMark) Creates an instance of aYamlMaprecord class.- Parameters:
value- the value for thevaluerecord componentstartMark- the value for thestartMarkrecord componentendMark- the value for theendMarkrecord component
-
-
Method Details
-
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). -
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. -
value
Returns the value of thevaluerecord component. -
startMark
public org.yaml.snakeyaml.error.Mark startMark()Returns the value of thestartMarkrecord component. -
endMark
public org.yaml.snakeyaml.error.Mark endMark()Returns the value of theendMarkrecord component.
-