Record Class Result.Ok<T extends @UnknownNullability Object>
java.lang.Object
java.lang.Record
net.minestom.server.codec.Result.Ok<T>
- Type Parameters:
T- the value type- Record Components:
value- the value ofT
- All Implemented Interfaces:
Result<T>
- Enclosing interface:
Result<T extends @UnknownNullability Object>
public static record Result.Ok<T extends @UnknownNullability Object>(T extends @UnknownNullability Object value)
extends Record
implements Result<T>
Represents the
Result was successful.-
Nested Class Summary
Nested classes/interfaces inherited from interface Result
Result.Error<T>, Result.Ok<T> -
Constructor Summary
Constructors -
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.Methods inherited from interface Result
cast, map, mapError, mapResult, orElse, orElseThrow, orElseThrow
-
Constructor Details
-
Ok
-
-
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
-