Record Class RDFEngineFactoryLegacyBase.CloseablePath
java.lang.Object
java.lang.Record
org.aksw.jenax.dataaccess.sparql.factory.dataengine.RDFEngineFactoryLegacyBase.CloseablePath
- Enclosing class:
- RDFEngineFactoryLegacyBase
public static record RDFEngineFactoryLegacyBase.CloseablePath(Path path, Closeable closeable, boolean deleteOnClose)
extends Record
The deteleOnClose flag tells whether calling close will attempt to delete the folder
-
Constructor Summary
ConstructorsConstructorDescriptionCloseablePath(Path path, Closeable closeable, boolean deleteOnClose) Creates an instance of aCloseablePathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecloseablerecord component.booleanReturns the value of thedeleteOnCloserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CloseablePath
Creates an instance of aCloseablePathrecord class.- Parameters:
path- the value for thepathrecord componentcloseable- the value for thecloseablerecord componentdeleteOnClose- the value for thedeleteOnCloserecord component
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
closeable
Returns the value of thecloseablerecord component.- Returns:
- the value of the
closeablerecord component
-
deleteOnClose
public boolean deleteOnClose()Returns the value of thedeleteOnCloserecord component.- Returns:
- the value of the
deleteOnCloserecord component
-