Record Class MModule
java.lang.Object
java.lang.Record
com.io7m.montarre.api.MModule
- Record Components:
file- The filesize- The file size in octetshash- The hash
- All Implemented Interfaces:
MManifestItemType
public record MModule(MFileName file, long size, MHash hash)
extends Record
implements MManifestItemType
A platform independent module item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MModule
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
file
Returns the value of thefilerecord component.- Specified by:
filein interfaceMManifestItemType- Returns:
- the value of the
filerecord component
-
size
public long size()Returns the value of thesizerecord component.- Specified by:
sizein interfaceMManifestItemType- Returns:
- the value of the
sizerecord component
-
hash
Returns the value of thehashrecord component.- Specified by:
hashin interfaceMManifestItemType- Returns:
- the value of the
hashrecord component
-