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 $
- Author:
- Harald Kuhr
-
-
Field Summary
Fields Modifier and Type Field Description static DuplicateHandler<?>
DUPLICATES_AS_ARRAY
Converts duplicats to anObject
array.static DuplicateHandler<java.lang.String>
DUPLICATES_AS_CSV
Converts duplicates to a comma-separatedString
.static DuplicateHandler<?>
USE_FIRST_VALUE
Will use the first (old) value.static DuplicateHandler<?>
USE_LAST_VALUE
Will use the last (new) value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
resolve(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 anObject
array.
-
DUPLICATES_AS_CSV
static final DuplicateHandler<java.lang.String> DUPLICATES_AS_CSV
Converts duplicates to a comma-separatedString
. Note that all values should allready beString
s if using this handler.
-
-