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 aTempFileTransfertResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncleanUp()Returns the value of thecleanUprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tempFile()Returns the value of thetempFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TempFileTransfertResult
Creates an instance of aTempFileTransfertResultrecord class.- Parameters:
tempFile- the value for thetempFilerecord componentcleanUp- the value for thecleanUprecord 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 thetempFilerecord component.- Returns:
- the value of the
tempFilerecord component
-
cleanUp
Returns the value of thecleanUprecord component.- Returns:
- the value of the
cleanUprecord component
-