Module org.elasticsearch.server
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 theansiEnabledrecord component.charset()Returns the value of thecharsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprintStreamrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component. 
- 
Constructor Details
- 
Console
public Console(PrintStream printStream, Supplier<Integer> width, Boolean ansiEnabled, @Nullable Charset charset) Creates an instance of aConsolerecord class.- Parameters:
 printStream- the value for theprintStreamrecord componentwidth- the value for thewidthrecord componentansiEnabled- the value for theansiEnabledrecord componentcharset- the value for thecharsetrecord 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 theprintStreamrecord component.- Returns:
 - the value of the 
printStreamrecord component 
 - 
width
Returns the value of thewidthrecord component.- Returns:
 - the value of the 
widthrecord component 
 - 
ansiEnabled
Returns the value of theansiEnabledrecord component.- Returns:
 - the value of the 
ansiEnabledrecord component 
 - 
charset
Returns the value of thecharsetrecord component.- Returns:
 - the value of the 
charsetrecord component 
 
 -