|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.types.collections.FwCollectionUtility
This class contains some collection utility methods.
| Constructor Summary | |
FwCollectionUtility()
|
|
| Method Summary | |
static boolean |
contains(java.util.Iterator i,
java.lang.Object o)
Checks if the list with given iterator contains an object same as o. |
static int |
countElements(java.util.Iterator i)
Counts elements of the collection with iterator i. |
static com.ds.fw.types.FwCodeIF |
findCode(java.util.Iterator i,
java.lang.String s)
Finds an element of a list with iterator i, with the given code s. |
static com.ds.fw.types.FwCodeIF |
findCode(java.util.List v,
java.lang.String s)
Finds an element of the List with the given code s. |
static com.ds.fw.types.FwIdIF |
findId(java.util.Iterator i,
java.lang.String id)
Finds an element of a list with iterator i, with the given id. |
static com.ds.fw.types.FwIdIF |
findId(java.util.List v,
java.lang.String id)
Finds an element of the List with the given id. |
static java.lang.Object |
get(java.util.Iterator v,
int n)
Returns the element with index n from a collection with iterator v. |
static java.util.Iterator |
getCopy(java.util.Iterator i)
Makes a deep copy of the colection with iterator i and returns an iterator to the newly created copy. |
static java.util.Iterator |
newIterator(java.lang.Object e)
Creates a new ArrayList, adds the given object and returns an iterator for the newly created array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FwCollectionUtility()
| Method Detail |
public static com.ds.fw.types.FwIdIF findId(java.util.List v,
java.lang.String id)
v - the listid - the id to search for
findId(Iterator,String)
public static com.ds.fw.types.FwIdIF findId(java.util.Iterator i,
java.lang.String id)
i - a list iteratorid - the id to search for
public static com.ds.fw.types.FwCodeIF findCode(java.util.List v,
java.lang.String s)
v - the lists - the code to search for
findCode(Iterator,String)
public static com.ds.fw.types.FwCodeIF findCode(java.util.Iterator i,
java.lang.String s)
i - a list iterators - the code to search for
public static boolean contains(java.util.Iterator i,
java.lang.Object o)
i - a list iteratoro - the object to search for
public static java.util.Iterator newIterator(java.lang.Object e)
e - the object to add
public static java.lang.Object get(java.util.Iterator v,
int n)
v - an iteratorn - the index
public static java.util.Iterator getCopy(java.util.Iterator i)
i - an iterator
public static int countElements(java.util.Iterator i)
i - an iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||