|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.util.CollectionUtil
public final class CollectionUtil
Some helper methods for dealing with collections.
| Method Summary | |
|---|---|
static java.lang.Object |
getFirstItem(java.util.Collection c)
Return the first item from a collection using the most efficient method possible. |
static java.lang.Object |
getFirstItemOrNull(java.util.Collection c)
Return the first item from a collection using the most efficient method possible. |
static int |
indexOf(java.util.Collection c,
java.lang.Object elem)
Get the index position of an element in a collection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object getFirstItem(java.util.Collection c)
c - The Collection.
java.util.NoSuchElementException - if the collection is empty.public static java.lang.Object getFirstItemOrNull(java.util.Collection c)
c - The Collection.
public static int indexOf(java.util.Collection c,
java.lang.Object elem)
c - The Collection.elem - the element to find the index of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |