|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cfa.vo.iris.utils.List<T>
public class List<T>
Constructor Summary | |
---|---|
List()
|
|
List(Collection<T> elements)
|
|
List(String id)
|
|
List(String id,
IList<T> elements)
|
Method Summary | ||
---|---|---|
void |
add(int position,
T element)
Add an element in a certain position. |
|
boolean |
add(T element)
Add an element to this list. |
|
boolean |
addAll(Collection<? extends T> elements)
Add a collection of elements this list. |
|
boolean |
addAll(IList<? extends T> elements)
Add an IList of elements to this list. |
|
static
|
filter(IList<T> target,
IPredicate<T> predicate,
String id)
|
|
T |
get(int i)
|
|
protected ArrayList<T> |
getElements()
|
|
String |
getId()
Get the ID string for this list. |
|
boolean |
isEmpty()
Check whether this list is empty. |
|
Iterator<T> |
iterator()
|
|
boolean |
remove(T element)
Remove an element from this list. |
|
void |
setId(String id)
Set the ID string for this list. |
|
int |
size()
Get the size of this list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public List()
public List(String id)
public List(String id, IList<T> elements)
public List(Collection<T> elements)
Method Detail |
---|
public String getId()
IList
getId
in interface IList<T>
public void setId(String id)
IList
setId
in interface IList<T>
id
- The ID string.public Iterator<T> iterator()
iterator
in interface Iterable<T>
public boolean add(T element) throws SedException
IList
add
in interface IList<T>
element
- The element to be added.
SedException
- An Exception is thrown when the element fails a compatibility check.public boolean addAll(Collection<? extends T> elements) throws SedException
IList
addAll
in interface IList<T>
elements
- The elements to be added.
SedException
- An Exception is thrown when an element in the collection fails a compatibility check.public void add(int position, T element) throws SedException
IList
add
in interface IList<T>
position
- The position in which the element has to be added.element
- The element to be added.
SedException
- SedException An Exception is thrown when the element fails a compatibility check.public boolean remove(T element)
IList
remove
in interface IList<T>
element
- The element to be removed.
protected final ArrayList<T> getElements()
public static <T> IList<T> filter(IList<T> target, IPredicate<T> predicate, String id)
public boolean addAll(IList<? extends T> elements) throws SedException
IList
addAll
in interface IList<T>
elements
- The elements to be added.
SedException
- An Exception is thrown when an element in the IList fails a compatibility check.public int size()
IList
size
in interface IList<T>
public boolean isEmpty()
IList
isEmpty
in interface IList<T>
public T get(int i)
get
in interface IList<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |