Package tripleplay.syncdb
Interface Resolver<T>
public interface Resolver<T>
Provides a mechanism for resolving conflict between two conflicting values in a sync db.
-
Field Summary
Modifier and TypeFieldDescriptionUses whichever of the client or server is false.Uses the largest of the client and server floating point numbers.Uses the smallest of the client and server floating point numbers.Uses the largest of the client and server integral numbers.Uses the smallest of the client and server integral numbers.Uses the server value, ignoring the client value.Uses whichever of the client or server is true. -
Method Summary
-
Field Details
-
SERVER
Uses the server value, ignoring the client value. -
INTMIN
Uses the smallest of the client and server integral numbers. -
INTMAX
Uses the largest of the client and server integral numbers. -
FLOATMIN
Uses the smallest of the client and server floating point numbers. -
FLOATMAX
Uses the largest of the client and server floating point numbers. -
TRUE
Uses whichever of the client or server is true. -
FALSE
Uses whichever of the client or server is false.
-
-
Method Details
-
resolve
Resolves a conflict between a client and server value.- Returns:
- the value to be used on the client.
-