|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object diamondedge.util.VbCollection
public class VbCollection
Field Summary | |
---|---|
static int |
AFTER
|
static int |
BEFORE
|
Constructor Summary | |
---|---|
VbCollection()
|
Method Summary | |
---|---|
void |
add(Object val)
Adds a value to the end of the collection with a default key. |
void |
add(Object val,
String key)
Adds a value to the end of the collection with a given key. |
void |
add(Object val,
String key,
int index,
int beforeOrAfter)
Adds a value to the collection with a given key at the position specified by relativeKey and beforeOrAfter. |
void |
add(Object val,
String key,
String relativeKey,
int beforeOrAfter)
Adds a value to the collection with a given key at the position specified by relativeKey and beforeOrAfter. |
void |
changeKey(String key,
String newkey)
|
void |
clear()
|
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value. |
int |
getCount()
|
int |
getIndex(String key)
return 1-based index for key |
Variant |
getItem(int index)
Returns the value at the specified position in this list. |
Variant |
getItem(String key)
Returns the value to which this collection maps the specified key. |
Variant |
getItem(Variant indexOrKey)
Returns the value at the specified position in this list or the value mapped to the specified key. |
String |
getKey(int index)
return key for 1-based index. |
String |
getNextKey()
|
void |
remove(int index)
|
void |
remove(String key)
|
void |
remove(Variant indexOrKey)
|
void |
setKey(int index,
String newkey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BEFORE
public static final int AFTER
Constructor Detail |
---|
public VbCollection()
Method Detail |
---|
public Variant getItem(int index)
ArrayIndexOutOfBoundsException
- - if index is not validpublic Variant getItem(String key)
IndexOutOfBoundsException
- - if key does not existpublic Variant getItem(Variant indexOrKey)
IndexOutOfBoundsException
- - if index or key is not validpublic int getCount()
public void add(Object val) throws RuntimeException
RuntimeException
public void add(Object val, String key) throws RuntimeException
RuntimeException
public void add(Object val, String key, String relativeKey, int beforeOrAfter) throws IndexOutOfBoundsException
val
- value to be addedkey
- the key that can be used to lookup this valuerelativeKey
- the key to another member of the collection used to specify where to put the new valuebeforeOrAfter
- One of: BEFORE or AFTER that in conjunction with relativeKey specifies the position of the new value to be inserted
IndexOutOfBoundsException
public void add(Object val, String key, int index, int beforeOrAfter) throws IndexOutOfBoundsException, RuntimeException
val
- value to be addedkey
- the key that can be used to lookup this valueindex
- the index to another member of the collection used to specify where to put the new valuebeforeOrAfter
- One of: BEFORE or AFTER that in conjunction with relativeKey specifies the position of the new value to be inserted
IndexOutOfBoundsException
RuntimeException
public void remove(int index)
public void remove(String key)
public void remove(Variant indexOrKey)
public void clear()
public int getIndex(String key)
public String getKey(int index)
public void setKey(int index, String newkey)
public void changeKey(String key, String newkey)
public String getNextKey()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |