Package edu.ie3.datamodel.io.csv
Record Class CsvFileDefinition
java.lang.Object
java.lang.Record
edu.ie3.datamodel.io.csv.CsvFileDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionCsvFileDefinition(String fileName, String directoryPath, String[] headLineElements, String csvSep) Creates an instance of aCsvFileDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncsvSep()Returns the value of thecsvSeprecord component.Returns the value of thedirectoryPathrecord component.booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.Deprecated.since 3.0.Deprecated.since 3.0.Deprecated.since 3.0.String[]Deprecated.since 3.0.inthashCode()Returns a hash code value for this object.String[]Returns the value of theheadLineElementsrecord 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 aCsvFileDefinitionrecord class.- Parameters:
fileName- the value for thefileNamerecord componentdirectoryPath- the value for thedirectoryPathrecord componentheadLineElements- the value for theheadLineElementsrecord componentcsvSep- the value for thecsvSeprecord 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 thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
directoryPath
Returns the value of thedirectoryPathrecord component.- Returns:
- the value of the
directoryPathrecord component
-
headLineElements
Returns the value of theheadLineElementsrecord component.- Returns:
- the value of the
headLineElementsrecord component
-
csvSep
Returns the value of thecsvSeprecord component.- Returns:
- the value of the
csvSeprecord component
-