| » Referenzen / Klassen / Array | ||
|
Diese Klasse stellt eine Vielzahl statischer Methoden für den Zugriff und die Erzeugung von Arrays bereit. |
||
|
| » Hierarchie | ||
|
|
||
| » Implementierung | ||
public final class Array
extends Object
|
||
|
||
|
||
|
| » Elemente | ||
|
In der folgenden Liste sind alle von uns bereits referenzierten Elemente der Klasse aufgeführt. |
||
|
||
|
||
|
||
|
||
| » Methoden / get * | ||||||
|
Die Methoden liefern jeweils ein bestimmtes Element eines Arrays. |
||||||
| » Prototyp | ||||||
public static Object get (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static boolean getBoolean(Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static byte getByte (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static char getChar (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static double getDouble (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static float getFloat (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static int getInt (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static long getLong (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static short getShort (Object array,int index)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
|
||||||
| » Parameter | ||||||
|
||||||
| » Rückgabe | ||||||
|
||||||
| » Ausnahmen & Fehler | ||||||
|
||||||
|
| » Methoden / getLenght | ||
|
Die Methoden liefern die aktuelle Anzahl der Elemente im Array. |
||
| » Prototyp | ||
public static int getLength(Object array)
throws IllegalArgumentException
|
||
| » Parameter | ||
|
||
| » Rückgabe | ||
|
||
| » Ausnahmen & Fehler | ||
|
||
|
| » Methoden / newInstance [1] | ||||
|
Die Methoden erzeugt ein neues Array vom spezifizierten Typ und einer bestimmten Anzahl von Elementen. |
||||
| » Prototyp | ||||
public static Object newInstance(Class type,int length)
throws NegativeArraySizeException
|
||||
| » Parameter | ||||
|
||||
| » Rückgabe | ||||
|
||||
| » Ausnahmen & Fehler | ||||
|
||||
|
| » Methoden / newInstance [2] | ||||||
|
Die Methoden erzeugt ein neues mehrdimensionales Array vom spezifizierten Typ und einer bestimmten Anzahl von Elementen. |
||||||
| » Prototyp | ||||||
public static Object newInstance(Class type,int[] dimension)
throws IllegalArgumentException,NegativeArraySizeException
|
||||||
| » Parameter | ||||||
|
||||||
| » Rückgabe | ||||||
|
||||||
| » Ausnahmen & Fehler | ||||||
|
||||||
|
| » Methoden / set * | ||||||
|
Die Methoden weist einem Arrayelement einen neuen Wert zu. |
||||||
| » Prototyp | ||||||
public static void set (Object array,int index, Object value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setBoolean(Object array,int index,boolean value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setByte (Object array,int index, byte value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setChar (Object array,int index, char value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setDouble (Object array,int index, double value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setFloat (Object array,int index, float value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setInt (Object array,int index, int value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setLong (Object array,int index, long value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
public static void setShort (Object array,int index, short value)
throws IllegalArgumentException,ArrayIndexOutOfBoundsException
|
||||||
| » Parameter | ||||||
|
||||||
| » Rückgabe | ||||||
|
keine |
||||||
| » Ausnahmen & Fehler | ||||||
|
||||||
|