public class CompositeKey
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
CompositeKey(java.lang.Comparable... keys)
keys muessen immatable sein (also String, Integer, ...
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CompositeKey other) |
int |
compareTo(java.lang.Object other) |
boolean |
equals(java.lang.Object obj) |
java.lang.Comparable |
getKey(int index) |
java.lang.Comparable[] |
getKeys()
Kopie der Schluessel
|
int |
getNSchluessel()
Anzahl der Schluessel
|
int |
hashCode() |
java.lang.String |
toString() |
public CompositeKey(java.lang.Comparable... keys)
NullPointerException,
- falls keine keysIllegalArgumentException,
- falls keys.length < 1 (O dimensionaler Array)public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
ClassCastException,
- if other is not of type CompositeKeyArrayIndexOutOfBoundsException,
- if other is not of type CompositeKey of same nSchluesselpublic int compareTo(CompositeKey other)
public final int getNSchluessel()
public final java.lang.Comparable getKey(int index)
java.lang.ArrayIndexOutOfBoundsException
public final java.lang.Comparable[] getKeys()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
13-September-2017 07:50 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft