|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.pivot.CompoundKey
public class CompoundKey
CompoundKey is a class that takes several objects and make them into one value so that it can be used as the key for a Map.
Constructor Summary | |
---|---|
protected |
CompoundKey(Object[] keys)
Creates a CompoundKey. |
Method Summary | |
---|---|
static void |
clearCache()
|
int |
compareTo(CompoundKey o)
Compare two CompoundKeys. |
int |
compareTo(CompoundKey thatKey,
IPivotDataModel pivotDataModel,
PivotField[] fields,
int[] orders)
Compare two CompoundKeys with the specified sort orders for each key. |
boolean |
equals(Object o)
Indicates whether this key contains the same key values as another CompoundKey. |
CompoundKey |
getCompoundKeyPrefix()
Gets the immediate prefix. |
CompoundKey |
getCompoundKeyPrefix(int prefixLength)
Gets the prefix of the specified length. |
CompoundKey[] |
getCompoundKeyPrefixes()
Gets several CompoundKeys that are partial of this CompoundKey. |
int |
getKeyCount()
Gets the number of keys. |
Object[] |
getKeys()
Gets the keys used in this CompoundKey. |
Object |
getLastKey()
Gets the last key from this compound key. |
int |
hashCode()
Gets the hash code for this compound key. |
int |
hashCode(int i)
|
static CompoundKey |
newInstance(Object[] keys)
Reuse the same instance of compound key. |
boolean |
startsWith(CompoundKey key)
Checks if the first number of keys in this CompoundKey are the same as the keys in the specified key. |
String |
toString()
|
Values |
toValues()
|
Values |
toValues(int count,
int summaryType)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CompoundKey(Object[] keys)
keys
- An array of keys.Method Detail |
---|
public static CompoundKey newInstance(Object[] keys)
keys
- the keys
public int hashCode()
hashCode
in class Object
public int compareTo(CompoundKey o)
compareTo
in interface Comparable<CompoundKey>
o
- The Object to check for equality.
public int compareTo(CompoundKey thatKey, IPivotDataModel pivotDataModel, PivotField[] fields, int[] orders)
thatKey
- the key to be comparedpivotDataModel
- the pivot data modelfields
- the pivot fieldsorders
- the order of each field
public boolean equals(Object o)
equals
in class Object
o
- The other object to compare to this
public Object[] getKeys()
public String toString()
toString
in class Object
public int getKeyCount()
public boolean startsWith(CompoundKey key)
key
- key to compare with
public int hashCode(int i)
public CompoundKey[] getCompoundKeyPrefixes()
startsWith(CompoundKey)
true.
public Object getLastKey()
public CompoundKey getCompoundKeyPrefix()
getCompoundKeyPrefixes()
public CompoundKey getCompoundKeyPrefix(int prefixLength)
prefixLength
- the prefix length.
getCompoundKeyPrefixes()
public static void clearCache()
public Values toValues()
public Values toValues(int count, int summaryType)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |