Record Class Result.Error<T>
java.lang.Object
java.lang.Record
net.minestom.server.codec.Result.Error<T>
- Type Parameters:
T- the type- Record Components:
message- the message
- All Implemented Interfaces:
Result<T>
- Enclosing interface:
Result<T extends @UnknownNullability Object>
-
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.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface Result
cast, map, mapError, mapResult, orElse, orElseThrow, orElseThrow
-
Constructor Details
-
Error
-
-
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). -
message
-