Package com.tbg.wms.cli.gui.analyzers
Record Class TableAnalyzerPresentation<R>
java.lang.Object
java.lang.Record
com.tbg.wms.cli.gui.analyzers.TableAnalyzerPresentation<R>
- All Implemented Interfaces:
AnalyzerPresentation<R>
public record TableAnalyzerPresentation<R>(AnalyzerColumnSet<R> columns, AnalyzerRowStyler<R> rowStyler)
extends Record
implements AnalyzerPresentation<R>
-
Constructor Summary
ConstructorsConstructorDescriptionTableAnalyzerPresentation(AnalyzerColumnSet<R> columns, AnalyzerRowStyler<R> rowStyler) Creates an instance of aTableAnalyzerPresentationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()static <R> TableAnalyzerPresentation<R>of(AnalyzerColumnSet<R> columns, AnalyzerRowStyler<R> rowStyler) Returns the value of therowStylerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableAnalyzerPresentation
Creates an instance of aTableAnalyzerPresentationrecord class.- Parameters:
columns- the value for thecolumnsrecord componentrowStyler- the value for therowStylerrecord component
-
-
Method Details
-
of
public static <R> TableAnalyzerPresentation<R> of(AnalyzerColumnSet<R> columns, AnalyzerRowStyler<R> rowStyler) -
id
- Specified by:
idin interfaceAnalyzerPresentation<R>
-
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). -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
rowStyler
Returns the value of therowStylerrecord component.- Returns:
- the value of the
rowStylerrecord component
-