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 aFileServiceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theexpiration
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theluceneIndexDir
record component.Returns the value of thestorageDir
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
expiration
private final int expirationThe field for theexpiration
record component. -
luceneIndexDir
The field for theluceneIndexDir
record component. -
storageDir
The field for thestorageDir
record component.
-
-
Constructor Details
-
FileServiceConfig
Creates an instance of aFileServiceConfig
record class.- Parameters:
expiration
- the value for theexpiration
record componentluceneIndexDir
- the value for theluceneIndexDir
record componentstorageDir
- the value for thestorageDir
record 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 theexpiration
record component.- Returns:
- the value of the
expiration
record component
-
luceneIndexDir
Returns the value of theluceneIndexDir
record component.- Returns:
- the value of the
luceneIndexDir
record component
-
storageDir
Returns the value of thestorageDir
record component.- Returns:
- the value of the
storageDir
record component
-