|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.lang.reflect.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 ÀÇ °æ¿ì, ¶Ç´Â ¹è¿ÀÇ ÄÄÆÛ³ÍÆ®ÇüÀÌ ¿ø½ÃÀûÀ̰í, ÁöÁ¤Ä¡°¡ 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 Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.