public class UserCollection
Property Getters/Setters Summary | ||
---|---|---|
int | getCount() | |
Gets the number of elements actually contained in the collection.
|
||
User | get(int index) | |
Gets the element at the specified index.
|
Method Summary | ||
---|---|---|
int | add(User item) | |
Add the User object in the collection.
|
||
void | clear() | |
Removes all elements from collection.
|
||
User | getUser(int ID) | |
Gets the element at the specified ID.
|
||
User | getUser(java.lang.String name) | |
Gets the element at the specified ID.
|
||
boolean | isExist(int index) | |
Is exist item in the collection.
|
||
java.util.Iterator | iterator() | |
Supports a simple iteration over a nongeneric collection.
|
||
void | remove(User item) | |
Remove the User object from the collection.
|
public int getCount()
public User get(int index)
index
- public int add(User item)
public void remove(User item)
public User getUser(java.lang.String name)
name
- public User getUser(int ID)
ID
- public java.util.Iterator iterator()
public boolean isExist(int index)
index
- index of element.public void clear()