Package org.moera.lib.crypto
Record Class RestoredFingerprint
java.lang.Object
java.lang.Record
org.moera.lib.crypto.RestoredFingerprint
Represents a reconstructed fingerprint and the number of bytes remaining in the input array
-
Constructor Summary
ConstructorsConstructorDescriptionRestoredFingerprint
(Fingerprint fingerprint, int available) Creates an instance of aRestoredFingerprint
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theavailable
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefingerprint
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RestoredFingerprint
Creates an instance of aRestoredFingerprint
record class.- Parameters:
fingerprint
- the value for thefingerprint
record componentavailable
- the value for theavailable
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
fingerprint
Returns the value of thefingerprint
record component.- Returns:
- the value of the
fingerprint
record component
-
available
public int available()Returns the value of theavailable
record component.- Returns:
- the value of the
available
record component
-