Class MutableBoolean


  • public final class MutableBoolean
    extends java.lang.Object
    A mutable boolean in a box. If you need a thread-safe box, use AtomicBoolean instead.
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableBoolean​(boolean value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean get()  
      boolean getAndSetFalse()  
      void set​(boolean value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MutableBoolean

        public MutableBoolean​(boolean value)
    • Method Detail

      • get

        public boolean get()
      • getAndSetFalse

        public boolean getAndSetFalse()
      • set

        public void set​(boolean value)