Class Flag$

  • All Implemented Interfaces:
    java.io.Serializable

    public class Flag$
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Flag$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Flag$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Flag apply()  
      Flag apply​(boolean enabled)
      Implements a boolean flag CRDT that is initialized to false and can be switched to true.
      Flag create()
      Java API: Flag that is initialized to false.
      Flag Disabled()
      Flag that is initialized to false.
      Flag empty()
      Flag that is initialized to false.
      Flag Enabled()
      Flag that is initialized to true.
      scala.Option<java.lang.Object> unapply​(Flag x$0)  
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final Flag$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Flag$

        public Flag$()
    • Method Detail

      • empty

        public Flag empty()
        Flag that is initialized to false.
      • Disabled

        public Flag Disabled()
        Flag that is initialized to false.
      • Enabled

        public Flag Enabled()
        Flag that is initialized to true.
      • apply

        public Flag apply()
      • create

        public Flag create()
        Java API: Flag that is initialized to false.
      • apply

        public Flag apply​(boolean enabled)
        Implements a boolean flag CRDT that is initialized to false and can be switched to true. true wins over false in merge.

        This class is immutable, i.e. "modifying" methods return a new instance.

      • unapply

        public scala.Option<java.lang.Object> unapply​(Flag x$0)