Class Flag

    • Constructor Detail

      • Flag

        public Flag​(boolean enabled)
    • Method Detail

      • empty

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

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

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

        public static Flag apply()
      • create

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

        public static 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 static scala.Option<java.lang.Object> unapply​(Flag x$0)
      • enabled

        public boolean enabled()
      • switchOn

        public Flag switchOn()
      • merge

        public Flag merge​(Flag that)
      • copy

        public Flag copy​(boolean enabled)
      • copy$default$1

        public boolean copy$default$1()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object