Package com.google.common.collect
Class Tables.AbstractCell<R,C,V>
- java.lang.Object
-
- com.google.common.collect.Tables.AbstractCell<R,C,V>
-
- All Implemented Interfaces:
Table.Cell<R,C,V>
- Direct Known Subclasses:
ImmutableTable.MutableCell
,Tables.ImmutableCell
- Enclosing class:
- Tables
abstract static class Tables.AbstractCell<R,C,V> extends java.lang.Object implements Table.Cell<R,C,V>
-
-
Constructor Summary
Constructors Constructor Description AbstractCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Compares the specified object with this cell for equality.int
hashCode()
Returns the hash code of this cell.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.Table.Cell
getColumnKey, getRowKey, getValue
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:Table.Cell
Compares the specified object with this cell for equality. Two cells are equal when they have equal row keys, column keys, and values.- Specified by:
equals
in interfaceTable.Cell<R,C,V>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Description copied from interface:Table.Cell
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())
.- Specified by:
hashCode
in interfaceTable.Cell<R,C,V>
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-