Record Class ZstdResult.Ok
java.lang.Object
java.lang.Record
dev.hallock.zstd.ZstdResult.Ok
- 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 TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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
-
Ok
public Ok(long result) Creates an instance of aOkrecord class.- Parameters:
result- the value for theresultrecord 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 with thecomparemethod from their corresponding wrapper classes. -
result
public long result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-