Class SafeFlag


  • public final class SafeFlag
    extends java.lang.Object
    A boolean flag that kills the application when it detects memory corruption (eg. bit rot). Use for flags that are critical to the integrity of the application.
    • Constructor Summary

      Constructors 
      Constructor Description
      SafeFlag​(boolean enabled)  
    • Method Summary

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

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

      • SafeFlag

        public SafeFlag​(boolean enabled)
    • Method Detail

      • set

        public void set​(boolean enabled)
      • get

        public boolean get()