Record Class FileIO.FileMetadata
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.util.common.FileIO.FileMetadata
- Enclosing class:
FileIO
-
Constructor Summary
ConstructorsConstructorDescriptionFileMetadata(String name, long sizeBytes, long createdMs, long modifiedMs) Creates an instance of aFileMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreatedMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themodifiedMsrecord component.name()Returns the value of thenamerecord component.longReturns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileMetadata
Creates an instance of aFileMetadatarecord class.- Parameters:
name- the value for thenamerecord componentsizeBytes- the value for thesizeBytesrecord componentcreatedMs- the value for thecreatedMsrecord componentmodifiedMs- the value for themodifiedMsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sizeBytes
public long sizeBytes()Returns the value of thesizeBytesrecord component.- Returns:
- the value of the
sizeBytesrecord component
-
createdMs
public long createdMs()Returns the value of thecreatedMsrecord component.- Returns:
- the value of the
createdMsrecord component
-
modifiedMs
public long modifiedMs()Returns the value of themodifiedMsrecord component.- Returns:
- the value of the
modifiedMsrecord component
-