Record Class BasicProperty
java.lang.Object
java.lang.Record
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
- Record Components:
key- the key of the propertyvalue- the value of the property
- All Implemented Interfaces:
Property
A basic implementation of a property.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicProperty(String key, Object value) Creates an instance of aBasicPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true iff the object is a property with the same key.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
-
Method Details
-
equals
Returns true iff the object is a property with the same key.
-
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. -
key
Returns the value of thekeyrecord component. -
value
Returns the value of thevaluerecord component.
-