|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.lang.reflect.Array
public final class Array
Array Ŭ·¡½º´Â Java ¹è¿À» µ¿ÀûÀ¸·Î ÀÛ¼ºÇØ ¾×¼¼½ºÇϱâ À§ÇÑ static ¸Þ¼µå¸¦ Á¦°øÇÕ´Ï´Ù.
Array´Â
Ãëµæ µ¿ÀÛ ¶Ç´Â ¼³Á¤ µ¿ÀÛÁß¿¡ ÀϾ´Â È®´ë º¯È¯Àº Çã¿ëÇÕ´Ï´Ù¸¸, Ãà¼Ò º¯È¯ÀÌ ÀϾ¸é IllegalArgumentException°¡ ¹ß»ý µË´Ï´Ù.
| ¸Þ¼µå °³¿ä | |
|---|---|
static Object |
get (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
static boolean |
getBoolean (Object array,
int index)
ÁöÁ¤µÈ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ boolean·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static byte |
getByte (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ byte·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static char |
getChar (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ char·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static double |
getDouble (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ double·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static float |
getFloat (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ float·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static int |
getInt (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼³»ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ int·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static int |
getLength (Object array)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ±æÀ̸¦ int·Î
¸®ÅÏÇÕ´Ï´Ù. |
static long |
getLong (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ long·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static short |
getShort (Object array,
int index)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ ÁöÁ¤µÈ À妽ºÀÇ ÄÄÆÛ³ÍÆ®Ä¡¸¦ short·Î
¼ ¸®ÅÏÇÕ´Ï´Ù. |
static Object |
newInstance (Class <? > componentType,
int length)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®Çü°ú ÄÄÆÛ³ÍÆ® »çÀÌÁ »ç¿ëÇØ »õ·Î¿î ¹è¿À» ÀÛ¼ºÇÕ´Ï´Ù. |
static Object |
newInstance (Class <? > componentType,
int[] dimensions)
ÁöÁ¤µÈ ÄÄÆÛ³ÍÆ®Çü°ú Å©±â·Î »õ·Î¿î ¹è¿À» ÀÛ¼ºÇÕ´Ï´Ù. |
static void |
set (Object array,
int index,
Object value)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ »õ·Î¿î °ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setBoolean (Object array,
int index,
boolean z)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ boolean°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setByte (Object array,
int index,
byte b)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ byte°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setChar (Object array,
int index,
char c)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ char°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setDouble (Object array,
int index,
double d)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ double°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setFloat (Object array,
int index,
float f)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ float°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setInt (Object array,
int index,
int i)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ int°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setLong (Object array,
int index,
long l)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ long°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
static void |
setShort (Object array,
int index,
short s)
ÁöÁ¤µÈ ¹è¿ °´Ã¼ÀÇ À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ °ªÀ» ÁöÁ¤µÈ short°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public static Object newInstance(Class <? > componentType,
int length)
throws NegativeArraySizeException
int[] x = {length};
Array.newInstance(componentType, x);
componentType - »õ·Î¿î ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ» ³ªÅ¸³»´Â Class °´Ã¼length - »õ·Î¿î ¹è¿ÀÇ ±æÀÌ
NullPointerException - ÁöÁ¤µÈ componentType ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
IllegalArgumentException - componentType°¡ Void.TYPEÀÎ °æ¿ì
NegativeArraySizeException - ÁöÁ¤µÈ length°¡ ºÎÀÇ °æ¿ì
public static Object newInstance(Class <? > componentType,
int[] dimensions)
throws IllegalArgumentException,
NegativeArraySizeException
componentType°¡ ¹è¿ÀÌ ¾Æ´Ñ Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽º¸¦ ³ªÅ¸³»´Â °æ¿ì, »õ·Î¿î ¹è¿ÀÇ Å©±â´Â dimensions.length, ÄÄÆÛ³ÍÆ®ÇüÀº componentType ÀÔ´Ï´Ù. componentType°¡ ¹è¿ Ŭ·¡½º¸¦ ³ªÅ¸³»´Â °æ¿ì, »õ·Î¿î ¹è¿ÀÇ Â÷¿ø¼ö´Â dimensions.length ¹× componentType
Â÷¿ø¼öÀÇ ÇÕ°èÀÔ´Ï´Ù. ÀÌ °æ¿ì
»õ·Î¿î ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀº componentType
ÄÄÆÛ³ÍÆ®ÇüÀÔ´Ï´Ù.
»õ·Î¿î ¹è¿ÀÇ Â÷¿ø¼ö´Â ±¸ÇöÀÌ Áö¿ø Çϰí ÀÖ´Â ¹è¿ÀÇ Â÷¿ø¼ö (ÀϹÝÀûÀ¸·Î 255)¸¦ ³Ñ¾î¼´Â ¾ÈµË´Ï´Ù.
componentType - »õ·Î¿î ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ» ³ªÅ¸³»´Â Class °´Ã¼dimensions - »õ·Î¿î ¹è¿ÀÇ Å©±â¸¦ ³ªÅ¸³»´Â int ÇüÀÇ ¹è¿
NullPointerException - ÁöÁ¤µÈ componentTypeÀμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ dimensionsÀμö°¡ Å©±â°¡ Á¦·ÎÀÇ ¹è¿ÀÎ °æ¿ì, ¿ä±¸µÈ Â÷¿ø¼ö°¡ ±¸Çö¿¡ ÀÇÇØ Áö¿ø
µÇ´Â ¹è¿ÀÇ Â÷¿ø¼öÀÇ Çѵµ (ÀϹÝÀûÀ¸·Î 255)¸¦ ³Ñ°í ÀÖ´Â °æ¿ì, ¶Ç´Â componentType°¡ Void.TYPEÀÎ °æ¿ì
NegativeArraySizeException - ÁöÁ¤µÈ dimensionsÀμöÀÇ ÄÄÆÛ³ÍÆ®ÀÇ ¾î¶² °ÍÀΰ¡°¡ ºÎÀÇ °æ¿ì
public static int getLength(Object array)
throws IllegalArgumentException
int·Î
¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿
IllegalArgumentException - °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
public static Object get(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ì
public static boolean getBoolean(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
boolean·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static byte getByte(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
byte·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static char getChar(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
char·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static short getShort(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
short·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static int getInt(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
int·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static long getLong(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
long·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static float getFloat(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
float·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static double getDouble(Object array,
int index)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
double·Î
¼ ¸®ÅÏÇÕ´Ï´Ù.
array - ¹è¿index - À妽º
NullPointerException - ÁöÁ¤µÈ °´Ã¼°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â À妽ºÀÇ ÄÄÆÛ³ÍÆ®¸¦ ½Äº°ÀÚ ¶Ç´Â È®´ë º¯È¯¿¡ ÀÇÇØ ¹Ýȯ°ªÀÇ ÇüÅ·Πº¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìget(java.lang.Object, int)
public static void set(Object array,
int index,
Object value)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºvalue - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀÌ ¿ø½ÃÀûÀ̰í, ·¦ ÇØÁ¦ º¯È¯ÀÌ ½ÇÆÐÇßÀ» °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ì
public static void setBoolean(Object array,
int index,
boolean z)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
boolean°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºz - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setByte(Object array,
int index,
byte b)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
byte°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºb - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setChar(Object array,
int index,
char c)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
char°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºc - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setShort(Object array,
int index,
short s)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
short°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºs - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setInt(Object array,
int index,
int i)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
int°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºi - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setLong(Object array,
int index,
long l)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
long°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºl - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setFloat(Object array,
int index,
float f)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
float°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºf - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
public static void setDouble(Object array,
int index,
double d)
throws IllegalArgumentException,
ArrayIndexOutOfBoundsException
double°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.
array - ¹è¿index - ¹è¿¾ÈÀÇ À妽ºd - À妽º ÷ºÎ ÄÄÆÛ³ÍÆ®ÀÇ »õ·Î¿î °ª
NullPointerException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ nullÀÎ °æ¿ì
IllegalArgumentException - ÁöÁ¤µÈ °´Ã¼ Àμö°¡ ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ °ªÀ» ½Äº°ÀÚ ¶Ç´Â ¿ø½ÃÀû È®´ë º¯È¯¿¡ÀÇÇØ ±âº»ÀÌ µÇ´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀ¸·Î º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException - ÁöÁ¤µÈ indexÀμö°¡ ºÎÀÇ °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ indexÀμö°¡ ÁöÁ¤µÈ ¹è¿ÀÇ ±æÀÌ ÀÌ»óÀÇ °æ¿ìset(java.lang.Object, int, java.lang.Object)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.