|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.misc.LyMultiList<T>
public final class LyMultiList<T>
This class is an utility class to manage a list of objects with a counter of occurences for each object. It is like a java Hashtable containing these objects as keys and an integer value as values.
Hashtable
,
Vector
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyMultiList()
Default constructor. |
Method Summary | |
---|---|
int |
addObject(T object)
Adds the given object to the objects list. |
void |
clearObject(T object)
Removes all occurences of an object in this list. |
boolean |
contains(T object)
Checks if the given object is contained in this list. |
int |
getCount(T object)
Gets the number of occurences of the given object. |
int |
getIndex(T object)
Gets the index of the given object. |
T |
getObject(int index)
Gets the object at the specified index. |
java.util.Vector<T> |
getObjects()
Gets the set of objects. |
int |
getSize()
Gets the number of objects in this list. |
int |
removeObject(T object)
Removes an occurence of the specified object from this list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyMultiList()
Method Detail |
---|
public boolean contains(T object)
object
- The object to find.
public int getIndex(T object)
object
- The object.
public int getCount(T object)
object
- The object.
public int getSize()
public T getObject(int index)
index
- The index of the requested object.
public int addObject(T object)
object
- the object to add
public int removeObject(T object)
object
- Object to remove.
public void clearObject(T object)
object
- The object to remove from the list.public java.util.Vector<T> getObjects()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |