|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.versioning.ArbitraryInconsistencyResolver<T>
public class ArbitraryInconsistencyResolver<T>
An inconsistency resolution strategy that always prefers the first of the two objects.
| Constructor Summary | |
|---|---|
ArbitraryInconsistencyResolver()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.util.List<T> |
resolveConflicts(java.util.List<T> values)
Arbitrarily resolve the inconsistency by choosing the first object if there is one. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArbitraryInconsistencyResolver()
| Method Detail |
|---|
public java.util.List<T> resolveConflicts(java.util.List<T> values)
resolveConflicts in interface InconsistencyResolver<T>values - The list of objects
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||