mondrian.rolap
Class CellKey.Three

java.lang.Object
  extended by mondrian.rolap.CellKey.Three
All Implemented Interfaces:
CellKey
Enclosing interface:
CellKey

public static class CellKey.Three
extends Object
implements CellKey


Nested Class Summary
 
Nested classes/interfaces inherited from interface mondrian.rolap.CellKey
CellKey.Generator, CellKey.Many, CellKey.One, CellKey.Three, CellKey.Two, CellKey.Zero
 
Method Summary
 CellKey.Three copy()
          Returns a mutable copy of this CellKey.
 boolean equals(Object o)
           
 int getAxis(int axis)
          Returns the axisth axis value.
 int[] getOrdinals()
          Returns the axis keys as an array.
 int hashCode()
           
 void setAxis(int axis, int value)
          Sets a given axis.
 void setOrdinals(int[] pos)
          This method make a copy of the int array parameter.
 int size()
          Returns the number of axes.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

copy

public CellKey.Three copy()
Description copied from interface: CellKey
Returns a mutable copy of this CellKey.

Specified by:
copy in interface CellKey
Returns:
Mutable copy

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getAxis

public int getAxis(int axis)
Description copied from interface: CellKey
Returns the axisth axis value.

Specified by:
getAxis in interface CellKey
Parameters:
axis - Axis ordinal
Returns:
Value of the axisth axis

setAxis

public void setAxis(int axis,
                    int value)
Description copied from interface: CellKey
Sets a given axis.

Specified by:
setAxis in interface CellKey
Parameters:
axis - Axis ordinal
value - Value

size

public int size()
Description copied from interface: CellKey
Returns the number of axes.

Specified by:
size in interface CellKey
Returns:
number of axes

getOrdinals

public int[] getOrdinals()
Description copied from interface: CellKey
Returns the axis keys as an array.

Note: caller should treat the array as immutable. If the contents of the array are modified, behavior is unspecified.

Specified by:
getOrdinals in interface CellKey
Returns:
Array of axis keys

setOrdinals

public void setOrdinals(int[] pos)
Description copied from interface: CellKey
This method make a copy of the int array parameter. Throws a RuntimeException if the int array size is not the size of the CellKey.

Specified by:
setOrdinals in interface CellKey
Parameters:
pos - Array of axis keys

SourceForge.net_Logo