Package ru.tinkoff.kora.json.common
Record Class JsonNullable.Undefined<T>
java.lang.Object
java.lang.Record
ru.tinkoff.kora.json.common.JsonNullable.Undefined<T>
- All Implemented Interfaces:
JsonNullable<T>
- Enclosing interface:
- JsonNullable<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface ru.tinkoff.kora.json.common.JsonNullable
JsonNullable.Defined<T>, JsonNullable.Undefined<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.json.common.JsonNullable
isNull
-
Constructor Details
-
Undefined
public Undefined()Creates an instance of aUndefinedrecord class.
-
-
Method Details
-
isDefined
public boolean isDefined()- Specified by:
isDefinedin interfaceJsonNullable<T>
-
value
- Specified by:
valuein interfaceJsonNullable<T>
-
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. -
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.
-