|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.util.concurrent.atomic.AtomicBoolean
public class AtomicBoolean
¿øÀÚÀûÀÎ °»½ÅÀÌ °¡´ÉÇÑ boolean Ä¡. ¿øÀÚ º¯¼öÀÇ ÇÁ·ÎÆÛƼÀÇÀÚ¼¼ÇÑ ³»¿ëÀº java.util.concurrent.atomic
ÆÐŰÁö »ç¾çÀ» ÂüÁ¶ÇϽʽÿÀ. AtomicBoolean´Â
¿øÀÚ °»½Å Ç÷¡±×µîÀÇ ¾îÇø®ÄÉÀ̼ÇÀ¸·Î »ç¿ëµË´Ï´Ù. Boolean
´ëü·Î¼ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
AtomicBoolean ()
ÃʱⰪ false¸¦ »ç¿ëÇØ, »õ·Î¿î AtomicBoolean¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
AtomicBoolean (boolean initialValue)
ÁöÁ¤µÈ ÃʱⰪÀ» »ç¿ëÇØ, »õ·Î¿î AtomicBoolean¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
boolean |
compareAndSet (boolean expect,
boolean update)
¡¸ÇöÀçÀÇ °ª == ¿¹»óµÇ´Â °ª¡¹ÀÎ °æ¿ì, °ªÀÌ ÁöÁ¤µÈ °»½ÅÄ¡¿¡ ¿øÀÚÀûÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
boolean |
get ()
ÇöÀçÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
getAndSet (boolean newValue)
ÁöÁ¤µÈ °ªÀ¸·Î ¼³Á¤ÇØ, ÀüÀÇ °ªÀ» ¸®ÅÏÇÕ´Ï´Ù. |
void |
set (boolean newValue)
ÁöÁ¤µÈ °ª¿¡ ¹«Á¶°Ç ¼³Á¤ÇÕ´Ï´Ù. |
String |
toString ()
ÇöÀç°¡ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥ±â¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
weakCompareAndSet (boolean expect,
boolean update)
¡¸ÇöÀçÀÇ °ª == ¿¹»óµÇ´Â °ª¡¹ÀÎ °æ¿ì, °ªÀÌ ÁöÁ¤µÈ °»½ÅÄ¡¿¡ ¿øÀÚÀûÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public AtomicBoolean(boolean initialValue)
initialValue
- ÃʱⰪ
public AtomicBoolean()
¸Þ¼µåÀÇ »ó¼¼ |
---|
public final boolean get()
public final boolean compareAndSet(boolean expect, boolean update)
expect
- ¿¹»óµÇ´Â °ªupdate
- »õ·Î¿î °ª
public boolean weakCompareAndSet(boolean expect, boolean update)
expect
- ¿¹»óµÇ´Â °ªupdate
- »õ·Î¿î °ª
public final void set(boolean newValue)
newValue
- »õ·Î¿î °ªpublic final boolean getAndSet(boolean newValue)
newValue
- »õ·Î¿î °ª
public String toString()
Object
³»ÀÇ toString
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.