com.yosokumo.core
Class Cell

java.lang.Object
  extended by com.yosokumo.core.Cell

public class Cell
extends java.lang.Object

Represents a Value with an associated key or name.


Field Summary
private  long nameOrKey
          A name or a key, depending on the context in which the cell appears.
private  Value value
          The value of the cell.
 
Constructor Summary
Cell(long nameOrKey, Value value)
           
 
Method Summary
 long getKey()
          Return the key of the cell.
 long getName()
          Return the name of the cell.
 Value getValue()
          Return the value of the cell.
 java.lang.String toString()
          Return a string representation of this Cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nameOrKey

private long nameOrKey
A name or a key, depending on the context in which the cell appears.


value

private Value value
The value of the cell.

Constructor Detail

Cell

public Cell(long nameOrKey,
            Value value)
Method Detail

getName

public long getName()
Return the name of the cell.

Returns:
the name of the cell.

getKey

public long getKey()
Return the key of the cell.

Returns:
the key of the cell.

getValue

public Value getValue()
Return the value of the cell.

Returns:
the value of the cell.

toString

public java.lang.String toString()
Return a string representation of this Cell.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this Cell.