|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.versioning.MergingInconsistencyResolver<T>
public class MergingInconsistencyResolver<T>
A strategy based on merging the objects in the list
Constructor Summary | |
---|---|
MergingInconsistencyResolver(ObjectMerger<T> merger)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.util.List<Versioned<T>> |
resolveConflicts(java.util.List<Versioned<T>> items)
Take two different versions of an object and combine them into a single version of the object Implementations must maintain the contract that resolveConflict([null, null]) == null
if t != null , then
resolveConflict([null, t]) == resolveConflict([t, null]) == t |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergingInconsistencyResolver(ObjectMerger<T> merger)
Method Detail |
---|
public java.util.List<Versioned<T>> resolveConflicts(java.util.List<Versioned<T>> items)
InconsistencyResolver
resolveConflict([null, null]) == null
t != null
, then
resolveConflict([null, t]) == resolveConflict([t, null]) == t
resolveConflicts
in interface InconsistencyResolver<Versioned<T>>
items
- The items to be resolved
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |