java.lang.Object
java.lang.Record
net.luis.utils.collection.util.SimpleCell<R,C,V>  
- Type Parameters:
- R- The type of the row key
- C- The type of the column key
- V- The type of the value
- Record Components:
- getRowKey- The row key of the cell
- getColumnKey- The column key of the cell
- getValue- The value of the cell
- All Implemented Interfaces:
- com.google.common.collect.Table.Cell<R,- C, - V> 
public record SimpleCell<R,C,V>  (R getRowKey, C getColumnKey, V getValue)
extends Record
implements com.google.common.collect.Table.Cell<R,C,V>  
A simple implementation of the 
Table.Cell interface.- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleCell(R getRowKey, C getColumnKey, V getValue) Constructs a new simple cell with the specified row key, column key and value.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of thegetColumnKeyrecord component.Returns the value of thegetRowKeyrecord component.getValue()Returns the value of thegetValuerecord component.inthashCode()Returns a hash code value for this object.@NotNull StringtoString()Returns a string representation of this record class.
- 
Field Details- 
getRowKeyThe field for thegetRowKeyrecord component.
- 
getColumnKeyThe field for thegetColumnKeyrecord component.
- 
getValueThe field for thegetValuerecord component.
 
- 
- 
Constructor Details- 
SimpleCellConstructs a new simple cell with the specified row key, column key and value.- Parameters:
- getRowKey- The row key of the cell
- getColumnKey- The column key of the cell
- getValue- The value of the cell
- Throws:
- NullPointerException- if the row key or column key is null
 
 
- 
- 
Method Details- 
equalsIndicates 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).
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
toStringReturns 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.
- 
getRowKeyReturns the value of thegetRowKeyrecord component.
- 
getColumnKeyReturns the value of thegetColumnKeyrecord component.- Specified by:
- getColumnKeyin interface- com.google.common.collect.Table.Cell<R,- C, - V> 
- Returns:
- the value of the getColumnKeyrecord component
 
- 
getValueReturns the value of thegetValuerecord component.
 
-