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 none
inputStream - the InputStream or null if none
compressed - 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 Details

    • InputStreamBusinessOut

      public InputStreamBusinessOut(O dtoOut, InputStream inputStream, boolean compressed)
      Creates an instance of a InputStreamBusinessOut record class.
      Parameters:
      dtoOut - the value for the dtoOut record component
      inputStream - the value for the inputStream record component
      compressed - the value for the compressed record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dtoOut

      public O dtoOut()
      Returns the value of the dtoOut record component.
      Returns:
      the value of the dtoOut record component
    • inputStream

      public InputStream inputStream()
      Returns the value of the inputStream record component.
      Returns:
      the value of the inputStream record component
    • compressed

      public boolean compressed()
      Returns the value of the compressed record component.
      Returns:
      the value of the compressed record component