Package com.google.common.collect
Interface Table.Cell<R,C,V>
-
public static interface Table.Cell<R,C,V>
Row key / column key / value triplet corresponding to a mapping in a table.- Since:
- 7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(@Nullable Object obj)Compares the specified object with this cell for equality.@Nullable CgetColumnKey()Returns the column key of this cell.@Nullable RgetRowKey()Returns the row key of this cell.@Nullable VgetValue()Returns the value of this cell.inthashCode()Returns the hash code of this cell.
-
-
-
Method Detail
-
getColumnKey
@Nullable C getColumnKey()
Returns the column key of this cell.
-
equals
boolean equals(@Nullable Object obj)
Compares the specified object with this cell for equality. Two cells are equal when they have equal row keys, column keys, and values.- Overrides:
equalsin classObject- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument;falseotherwise.- See Also:
Object.hashCode(),HashMap
-
hashCode
int hashCode()
Returns the hash code of this cell.The hash code of a table cell is equal to
Objects.hashCode(java.lang.Object...)(e.getRowKey(), e.getColumnKey(), e.getValue()).- Overrides:
hashCodein classObject- Returns:
- a hash code value for this object.
- See Also:
Object.equals(java.lang.Object),System.identityHashCode(java.lang.Object)
-
-