Package ch.rswk.meta.engine
Record Class FileService.FileServiceConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.FileService.FileServiceConfig
- Enclosing class:
FileService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileServiceConfig(int expiration, String luceneIndexDir, String storageDir) Creates an instance of aFileServiceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpirationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theluceneIndexDirrecord component.Returns the value of thestorageDirrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
expiration
private final int expirationThe field for theexpirationrecord component. -
luceneIndexDir
The field for theluceneIndexDirrecord component. -
storageDir
The field for thestorageDirrecord component.
-
-
Constructor Details
-
FileServiceConfig
Creates an instance of aFileServiceConfigrecord class.- Parameters:
expiration- the value for theexpirationrecord componentluceneIndexDir- the value for theluceneIndexDirrecord componentstorageDir- the value for thestorageDirrecord 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 '=='. -
expiration
public int expiration()Returns the value of theexpirationrecord component.- Returns:
- the value of the
expirationrecord component
-
luceneIndexDir
Returns the value of theluceneIndexDirrecord component.- Returns:
- the value of the
luceneIndexDirrecord component
-
storageDir
Returns the value of thestorageDirrecord component.- Returns:
- the value of the
storageDirrecord component
-