Package edu.ie3.datamodel.io.csv
Record Class CsvFileDefinition
java.lang.Object
java.lang.Record
edu.ie3.datamodel.io.csv.CsvFileDefinition
-
Constructor Summary
ConstructorDescriptionCsvFileDefinition
(String fileName, String directoryPath, String[] headLineElements, String csvSep) Creates an instance of aCsvFileDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptioncsvSep()
Returns the value of thecsvSep
record component.Returns the value of thedirectoryPath
record component.boolean
Indicates whether some other object is "equal to" this one.fileName()
Returns the value of thefileName
record component.Deprecated.since 3.0.Deprecated.since 3.0.Deprecated.since 3.0.String[]
Deprecated.since 3.0.int
hashCode()
Returns a hash code value for this object.String[]
Returns the value of theheadLineElements
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
CsvFileDefinition
public CsvFileDefinition(String fileName, String directoryPath, String[] headLineElements, String csvSep) Creates an instance of aCsvFileDefinition
record class.- Parameters:
fileName
- the value for thefileName
record componentdirectoryPath
- the value for thedirectoryPath
record componentheadLineElements
- the value for theheadLineElements
record componentcsvSep
- the value for thecsvSep
record component
-
-
Method Details
-
getDirectoryPath
Deprecated.since 3.0. UsedirectoryPath()
instead -
getFileName
Deprecated.since 3.0. UsefileName()
instead- Returns:
- The file name including extension
-
getFilePath
- Returns:
- The path to the file relative to a not explicitly defined base directory, including the file extension
-
getHeadLineElements
Deprecated.since 3.0. UseheadLineElements()
instead -
getCsvSep
Deprecated.since 3.0. UsecsvSep()
instead -
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)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
fileName
Returns the value of thefileName
record component.- Returns:
- the value of the
fileName
record component
-
directoryPath
Returns the value of thedirectoryPath
record component.- Returns:
- the value of the
directoryPath
record component
-
headLineElements
Returns the value of theheadLineElements
record component.- Returns:
- the value of the
headLineElements
record component
-
csvSep
Returns the value of thecsvSep
record component.- Returns:
- the value of the
csvSep
record component
-