Record Class ProdosAttributes
java.lang.Object
java.lang.Record
org.applecommander.transfer.ProdosAttributes
public record ProdosAttributes(String name, int access, int fileType, int auxType, long size, Date creation, Date modified, Optional<DataBuffer> dataFork, Optional<DataBuffer> resourceFork)
extends Record
Capture all relevant ProDOS attributes since they are the most common set of attributes.
Note that the data fork and resource fork are optional and may or may not be included.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProdosAttributes(String name, int access, int fileType, int auxType, long size, Date creation, Date modified, Optional<DataBuffer> dataFork, Optional<DataBuffer> resourceFork) Creates an instance of aProdosAttributesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccess()Returns the value of theaccessrecord component.intauxType()Returns the value of theauxTyperecord component.static ProdosAttributes.Builderbuilder()creation()Returns the value of thecreationrecord component.dataFork()Returns the value of thedataForkrecord component.final booleanIndicates whether some other object is "equal to" this one.intfileType()Returns the value of thefileTyperecord component.final inthashCode()Returns a hash code value for this object.modified()Returns the value of themodifiedrecord component.name()Returns the value of thenamerecord component.Returns the value of theresourceForkrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TXT
public static final int TXT- See Also:
-
BIN
public static final int BIN- See Also:
-
INT
public static final int INT- See Also:
-
BAS
public static final int BAS- See Also:
-
REL
public static final int REL- See Also:
-
-
Constructor Details
-
ProdosAttributes
public ProdosAttributes(String name, int access, int fileType, int auxType, long size, Date creation, Date modified, Optional<DataBuffer> dataFork, Optional<DataBuffer> resourceFork) Creates an instance of aProdosAttributesrecord class.- Parameters:
name- the value for thenamerecord componentaccess- the value for theaccessrecord componentfileType- the value for thefileTyperecord componentauxType- the value for theauxTyperecord componentsize- the value for thesizerecord componentcreation- the value for thecreationrecord componentmodified- the value for themodifiedrecord componentdataFork- the value for thedataForkrecord componentresourceFork- the value for theresourceForkrecord component
-
-
Method Details
-
fileTypeText
-
builder
-
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
-
access
public int access()Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-
fileType
public int fileType()Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-
auxType
public int auxType()Returns the value of theauxTyperecord component.- Returns:
- the value of the
auxTyperecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
creation
Returns the value of thecreationrecord component.- Returns:
- the value of the
creationrecord component
-
modified
Returns the value of themodifiedrecord component.- Returns:
- the value of the
modifiedrecord component
-
dataFork
Returns the value of thedataForkrecord component.- Returns:
- the value of the
dataForkrecord component
-
resourceFork
Returns the value of theresourceForkrecord component.- Returns:
- the value of the
resourceForkrecord component
-