Class GSet$

  • All Implemented Interfaces:
    java.io.Serializable, scala.Serializable

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

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

      Constructors 
      Constructor Description
      GSet$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GSet<java.lang.Object> apply()  
      <A> GSet<A> apply​(scala.collection.immutable.Set<A> set)  
      <A> GSet<A> apply​(scala.collection.immutable.Set<A> elements, scala.Option<GSet<A>> delta)
      Implements a 'Add Set' CRDT, also called a 'G-Set'.
      <A> GSet<A> create()
      Java API
      <A> GSet<A> empty()  
      <A> scala.Option<scala.collection.immutable.Set<A>> unapply​(GSet<A> 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 GSet$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • GSet$

        public GSet$()
    • Method Detail

      • empty

        public <A> GSet<A> empty()
      • apply

        public GSet<java.lang.Object> apply()
      • apply

        public <A> GSet<A> apply​(scala.collection.immutable.Set<A> set)
      • create

        public <A> GSet<A> create()
        Java API
        Returns:
        (undocumented)
      • apply

        public <A> GSet<A> apply​(scala.collection.immutable.Set<A> elements,
                                 scala.Option<GSet<A>> delta)
        Implements a 'Add Set' CRDT, also called a 'G-Set'. You can't remove elements of a G-Set.

        It is described in the paper A comprehensive study of Convergent and Commutative Replicated Data Types.

        A G-Set doesn't accumulate any garbage apart from the elements themselves.

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

        Parameters:
        elements - (undocumented)
        delta - (undocumented)
        Returns:
        (undocumented)
      • unapply

        public <A> scala.Option<scala.collection.immutable.Set<A>> unapply​(GSet<A> x$0)