Record Class InputStreamBusinessOut<O>

java.lang.Object
java.lang.Record
io.clonecloudstore.accessor.apache.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

public record InputStreamBusinessOut<O>(O dtoOut, InputStream inputStream) extends Record
InputStream dnd BusinessOut for Getting both information on Read Object
  • Constructor Details

    • InputStreamBusinessOut

      public InputStreamBusinessOut(O dtoOut, InputStream inputStream)
      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
  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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