Package org.elasticsearch.cli.terminal
Record Class Terminal.SystemStreams
java.lang.Object
java.lang.Record
org.elasticsearch.cli.terminal.Terminal.SystemStreams
- Enclosing class:
Terminal
-
Constructor Summary
ConstructorsConstructorDescriptionSystemStreams(OutputStream out, OutputStream err) Creates an instance of aSystemStreamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.err()Returns the value of theerrrecord component.final inthashCode()Returns a hash code value for this object.out()Returns the value of theoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SystemStreams
Creates an instance of aSystemStreamsrecord class.- Parameters:
out- the value for theoutrecord componenterr- the value for theerrrecord 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). -
out
Returns the value of theoutrecord component.- Returns:
- the value of the
outrecord component
-
err
Returns the value of theerrrecord component.- Returns:
- the value of the
errrecord component
-