Package net.bluemind.utils
Record Class FileUtils.TempFileTransfertResult
java.lang.Object
java.lang.Record
net.bluemind.utils.FileUtils.TempFileTransfertResult
- Enclosing class:
FileUtils
-
Constructor Summary
ConstructorsConstructorDescriptionTempFileTransfertResult
(Path tempFile, Runnable cleanUp) Creates an instance of aTempFileTransfertResult
record class. -
Method Summary
Modifier and TypeMethodDescriptioncleanUp()
Returns the value of thecleanUp
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.tempFile()
Returns the value of thetempFile
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TempFileTransfertResult
Creates an instance of aTempFileTransfertResult
record class.- Parameters:
tempFile
- the value for thetempFile
record componentcleanUp
- the value for thecleanUp
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
tempFile
Returns the value of thetempFile
record component.- Returns:
- the value of the
tempFile
record component
-
cleanUp
Returns the value of thecleanUp
record component.- Returns:
- the value of the
cleanUp
record component
-