Package org.openmetadata.service.util
Record Class AsciiTable
java.lang.Object
java.lang.Record
org.openmetadata.service.util.AsciiTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.Returns the value of theemptyTextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nullText()Returns the value of thenullTextrecord component.booleanReturns the value of theprintHeaderrecord component.render()Return table rendered with column header and row data.rows()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AsciiTable
public AsciiTable(List<String> columns, List<List<String>> rows, boolean printHeader, String nullText, String emptyText) Creates an instance of aAsciiTablerecord class.- Parameters:
columns- the value for thecolumnsrecord componentrows- the value for therowsrecord componentprintHeader- the value for theprintHeaderrecord componentnullText- the value for thenullTextrecord componentemptyText- the value for theemptyTextrecord component
-
-
Method Details
-
render
Return table rendered with column header and row data. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
printHeader
public boolean printHeader()Returns the value of theprintHeaderrecord component.- Returns:
- the value of the
printHeaderrecord component
-
nullText
Returns the value of thenullTextrecord component.- Returns:
- the value of the
nullTextrecord component
-
emptyText
Returns the value of theemptyTextrecord component.- Returns:
- the value of the
emptyTextrecord component
-