Package io.github.qishr.cascara.common.lang.type
Record ScalarValue
java.lang.Object
java.lang.Record
io.github.qishr.cascara.common.lang.type.ScalarValue
public final record ScalarValue
extends Record
Constructor Summary
| Constructor | Description |
|---|---|
| ScalarValue(Object nativeValue, PrimitiveType type) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public final String | toString() | Returns a string representation of this record class. |
| public final int | hashCode() | Returns a hash code value for this object. |
| public final boolean | equals(Object o) | Indicates whether some other object is "equal to" this one. |
| public Object | nativeValue() | Returns the value of the nativeValue record component. |
| public PrimitiveType | type() | Returns the value of the type record component. |
Method Details
toString
public final String toString()
Returns a string representation of this record class.
hashCode
public final int hashCode()
Returns a hash code value for this object.
equals
public final boolean equals(Object o)
Indicates whether some other object is "equal to" this one.
nativeValue
public Object nativeValue()
Returns the value of the nativeValue record component.
type
public PrimitiveType type()
Returns the value of the type record component.