Record Class BlockfileStorage.FilenameAndInputStream
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.storage.BlockfileStorage.FilenameAndInputStream
- Enclosing interface:
BlockfileStorage
public static record BlockfileStorage.FilenameAndInputStream(String filename, InputStream inputStream)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFilenameAndInputStream(String filename, InputStream inputStream) Creates an instance of aFilenameAndInputStreamrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinputStreamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilenameAndInputStream
Creates an instance of aFilenameAndInputStreamrecord class.- Parameters:
filename- the value for thefilenamerecord componentinputStream- the value for theinputStreamrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
inputStream
Returns the value of theinputStreamrecord component.- Returns:
- the value of the
inputStreamrecord component
-