akka.cluster
Class Versioned$

java.lang.Object
  extended by akka.cluster.Versioned$

public class Versioned$
extends java.lang.Object

Utility methods for comparing Versioned instances.


Field Summary
static Versioned$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Versioned$()
           
 
Method Summary
<T extends Versioned<T>>
Versioned.Ordering
compare(Versioned<T> versioned1, Versioned<T> versioned2)
          Returns or 'Ordering' for the two 'Versioned' instances.
<T extends Versioned<T>>
T
latestVersionOf(T versioned1, T versioned2)
          Returns the Versioned that have the latest version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final Versioned$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Versioned$

public Versioned$()
Method Detail

compare

public <T extends Versioned<T>> Versioned.Ordering compare(Versioned<T> versioned1,
                                                           Versioned<T> versioned2)
Returns or 'Ordering' for the two 'Versioned' instances.


latestVersionOf

public <T extends Versioned<T>> T latestVersionOf(T versioned1,
                                                  T versioned2)
Returns the Versioned that have the latest version.