Record Class ZstdResult.Error
java.lang.Object
java.lang.Record
dev.hallock.zstd.ZstdResult.Error
- All Implemented Interfaces:
ZstdResult
- Enclosing interface:
ZstdResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface ZstdResult
ZstdResult.Error, ZstdResult.Ok -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcode()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()longresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ZstdResult
orElseThrow
-
Constructor Details
-
Error
public Error(long result) Creates an instance of aErrorrecord class.- Parameters:
result- the value for theresultrecord component
-
-
Method Details
-
code
public int code() -
name
-
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 with thecomparemethod from their corresponding wrapper classes. -
result
public long result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-