Record Class ProdosAttributePreservation
java.lang.Object
java.lang.Record
org.applecommander.transfer.ProdosAttributePreservation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuild the ProdosAttributePreservation configuration. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProdosAttributePreservation(String fileName, int fileType, int auxType, Path dataPath, Path resourcePath) Creates an instance of aProdosAttributePreservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintauxType()Returns the value of theauxTyperecord component.builder()Initiate the builder.dataPath()Returns the value of thedataPathrecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.intfileType()Returns the value of thefileTyperecord component.final inthashCode()Returns a hash code value for this object.static ProdosAttributePreservationGiven a filename that is in the correct format, create theProdosAttributePreservationsettings.Returns the value of theresourcePathrecord component.static booleanTest if this file matches the expected filename pattern.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
PATTERN
-
-
Constructor Details
-
ProdosAttributePreservation
public ProdosAttributePreservation(String fileName, int fileType, int auxType, Path dataPath, Path resourcePath) Creates an instance of aProdosAttributePreservationrecord class.- Parameters:
fileName- the value for thefileNamerecord componentfileType- the value for thefileTyperecord componentauxType- the value for theauxTyperecord componentdataPath- the value for thedataPathrecord componentresourcePath- the value for theresourcePathrecord component
-
-
Method Details
-
toProdosAttributes
- Throws:
IOException
-
test
Test if this file matches the expected filename pattern. -
parse
Given a filename that is in the correct format, create theProdosAttributePreservationsettings.- Throws:
IllegalArgumentException- if an unexpected filename format is given
-
builder
Initiate the 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. -
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord 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
-
dataPath
Returns the value of thedataPathrecord component.- Returns:
- the value of the
dataPathrecord component
-
resourcePath
Returns the value of theresourcePathrecord component.- Returns:
- the value of the
resourcePathrecord component
-