Record Class Result.Error<T>
java.lang.Object
java.lang.Record
net.minestom.server.codec.Result.Error<T>
- All Implemented Interfaces:
Result<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.codec.Result
Result.Error<T>, Result.Ok<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull String
message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minestom.server.codec.Result
cast, map, mapError, mapResult, orElse, orElseThrow, orElseThrow
-
Constructor Details
-
Error
Creates an instance of aError
record class.- Parameters:
message
- the value for themessage
record component
-
-
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
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-