|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.util.ExtArrays
Various often used array functions
Constructor Summary | |
ExtArrays()
|
Method Summary | |
static Object[] |
add(int position,
Object toInsert,
Object[] array)
Insert an object into an array |
static Object[] |
add(Object toAppend,
Object[] array)
Append an object at the end of an array |
static boolean |
contains(Object[] array,
Object value)
Tells wether an array of objects contains a given value |
static int |
indexOf(Object[] array,
Object value)
Returns the index of a value in an array of Object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtArrays()
Method Detail |
public static Object[] add(int position, Object toInsert, Object[] array)
position
- of the object to insert (>=0 and <=array.length)toInsert
- the object to insertarray
- the array
public static Object[] add(Object toAppend, Object[] array)
toAppend
- the object to addarray
- the array
public static int indexOf(Object[] array, Object value)
array
- the arrayvalue
- the searched value
public static boolean contains(Object[] array, Object value)
array
- the array to search the value invalue
- the object to search for
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |