Package com.twelvemonkeys.util
Interface DuplicateHandler<T>
-
public interface DuplicateHandler<T>DuplicateHandler- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/util/DuplicateHandler.java#2 $
-
-
Field Summary
Fields Modifier and Type Field Description static DuplicateHandler<?>DUPLICATES_AS_ARRAYConverts duplicats to anObjectarray.static DuplicateHandler<java.lang.String>DUPLICATES_AS_CSVConverts duplicates to a comma-separatedString.static DuplicateHandler<?>USE_FIRST_VALUEWill use the first (old) value.static DuplicateHandler<?>USE_LAST_VALUEWill use the last (new) value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tresolve(T pOld, T pNew)Resolves duplicates according to a certain strategy.
-
-
-
Field Detail
-
USE_FIRST_VALUE
static final DuplicateHandler<?> USE_FIRST_VALUE
Will use the first (old) value. Any new values will be discarded.
-
USE_LAST_VALUE
static final DuplicateHandler<?> USE_LAST_VALUE
Will use the last (new) value. Any old values will be discarded (overwritten).
-
DUPLICATES_AS_ARRAY
static final DuplicateHandler<?> DUPLICATES_AS_ARRAY
Converts duplicats to anObjectarray.
-
DUPLICATES_AS_CSV
static final DuplicateHandler<java.lang.String> DUPLICATES_AS_CSV
Converts duplicates to a comma-separatedString. Note that all values should allready beStrings if using this handler.
-
-