Package org.elasticsearch.bootstrap
Record Class ConsoleLoader.Console
java.lang.Object
java.lang.Record
org.elasticsearch.bootstrap.ConsoleLoader.Console
- Enclosing class:
- ConsoleLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theansiEnabled
record component.charset()
Returns the value of thecharset
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 theprintStream
record component.final String
toString()
Returns a string representation of this record class.width()
Returns the value of thewidth
record component.
-
Constructor Details
-
Console
public Console(PrintStream printStream, Supplier<Integer> width, Boolean ansiEnabled, @Nullable Charset charset) Creates an instance of aConsole
record class.- Parameters:
printStream
- the value for theprintStream
record componentwidth
- the value for thewidth
record componentansiEnabled
- the value for theansiEnabled
record componentcharset
- the value for thecharset
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
printStream
Returns the value of theprintStream
record component.- Returns:
- the value of the
printStream
record component
-
width
Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
ansiEnabled
Returns the value of theansiEnabled
record component.- Returns:
- the value of the
ansiEnabled
record component
-
charset
Returns the value of thecharset
record component.- Returns:
- the value of the
charset
record component
-