Package de.chojo.nexus.entities
Record Class Checksum
java.lang.Object
java.lang.Record
de.chojo.nexus.entities.Checksum
-
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.md5()
Returns the value of themd5
record component.sha1()
Returns the value of thesha1
record component.sha256()
Returns the value of thesha256
record component.sha512()
Returns the value of thesha512
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Checksum
Creates an instance of aChecksum
record class.- Parameters:
sha1
- the value for thesha1
record componentsha256
- the value for thesha256
record componentsha512
- the value for thesha512
record componentmd5
- the value for themd5
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
sha1
Returns the value of thesha1
record component.- Returns:
- the value of the
sha1
record component
-
sha256
Returns the value of thesha256
record component.- Returns:
- the value of the
sha256
record component
-
sha512
Returns the value of thesha512
record component.- Returns:
- the value of the
sha512
record component
-
md5
Returns the value of themd5
record component.- Returns:
- the value of the
md5
record component
-