Record Class InputStreamBusinessOut<O>
java.lang.Object
java.lang.Record
io.clonecloudstore.common.quarkus.client.InputStreamBusinessOut<O>
- Type Parameters:
O
- the type for Business Output request (in GET or POST)- Record Components:
dtoOut
- the Business Out or null if noneinputStream
- the InputStream or null if nonecompressed
- True if the InputStream is present and compressed (ZSTD)
public record InputStreamBusinessOut<O>(O dtoOut, InputStream inputStream, boolean compressed)
extends Record
InputStream dnd BusinessOut for Getting both information on Read Object
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamBusinessOut
(O dtoOut, InputStream inputStream, boolean compressed) Creates an instance of aInputStreamBusinessOut
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecompressed
record component.dtoOut()
Returns the value of thedtoOut
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.Returns the value of theinputStream
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
InputStreamBusinessOut
Creates an instance of aInputStreamBusinessOut
record class.- Parameters:
dtoOut
- the value for thedtoOut
record componentinputStream
- the value for theinputStream
record componentcompressed
- the value for thecompressed
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
dtoOut
Returns the value of thedtoOut
record component.- Returns:
- the value of the
dtoOut
record component
-
inputStream
Returns the value of theinputStream
record component.- Returns:
- the value of the
inputStream
record component
-
compressed
public boolean compressed()Returns the value of thecompressed
record component.- Returns:
- the value of the
compressed
record component
-