|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Object>
org.makumba.commons.MultipleKey
public class MultipleKey
Holds the values for a group of fields. Every element of a MultipleKey holds an Object. In case of a null value being passed to one of the constructors, the element is replaced by a placeholder.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
MultipleKey(int size)
|
|
MultipleKey(Object... o)
|
|
MultipleKey(Object[] o,
int size)
|
|
MultipleKey(Vector<Object> v)
|
|
MultipleKey(Vector<Object> keys,
Dictionary<String,Object> data)
Keeps together the values associated with the give keys |
|
MultipleKey(Vector<Object> keys,
Dictionary<String,Object> data,
int size)
Keeps together the values associated with the given keys |
|
MultipleKey(Vector<Object> v,
int size)
|
|
MultipleKey(Vector<Object> v,
Object o)
Extends the Vector v and adds the object |
|
MultipleKey(Vector<Object> indexes,
Object[] data)
Keeps together the values associated with the given keys |
|
MultipleKey(Vector<Object> indexes,
Object[] data,
int size)
Keep together the values associated with the given keys |
Method Summary | |
---|---|
protected Object |
checkNull(Object o)
|
boolean |
equals(Object o)
Compares the elements of two MultipleKey objects |
int |
hashCode()
Computes a hash code of the MultipleKey by adding the individual hashcodes of each element |
void |
setAt(Object o,
int n)
|
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public MultipleKey(int size)
public MultipleKey(Vector<Object> v)
public MultipleKey(Vector<Object> v, int size)
public MultipleKey(Vector<Object> v, Object o)
v
- An instance of Vectoro
- An object to be addedpublic MultipleKey(Object... o)
public MultipleKey(Object[] o, int size)
public MultipleKey(Vector<Object> keys, Dictionary<String,Object> data)
keys
- A vector of keysdata
- The dictionary containing the values of the keyspublic MultipleKey(Vector<Object> keys, Dictionary<String,Object> data, int size)
keys
- A vector of keysdata
- The dictionary containing the values of the keyssize
- The size of the MultipleKey object to be constructedpublic MultipleKey(Vector<Object> indexes, Object[] data)
indexes
- A vector of keysdata
- The object array containing the values of the keyspublic MultipleKey(Vector<Object> indexes, Object[] data, int size)
indexes
- A vector of keysdata
- The object array containing the values of the keyssize
- The size of the MultipleKey object to be constructedMethod Detail |
---|
public void setAt(Object o, int n)
protected Object checkNull(Object o)
public boolean equals(Object o)
equals
in interface Collection<Object>
equals
in interface List<Object>
equals
in class Vector<Object>
o
- The object to be compared withpublic int hashCode()
hashCode
in interface Collection<Object>
hashCode
in interface List<Object>
hashCode
in class Vector<Object>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |