|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DuplicateHandler<T>
DuplicateHandler
| Field Summary | |
|---|---|
static DuplicateHandler<?> |
DUPLICATES_AS_ARRAY
Converts duplicats to an Object array. |
static DuplicateHandler<String> |
DUPLICATES_AS_CSV
Converts duplicates to a comma-separated String. |
static DuplicateHandler<?> |
USE_FIRST_VALUE
Will use the first (old) value. |
static DuplicateHandler<?> |
USE_LAST_VALUE
Will use the last (new) value. |
| Method Summary | |
|---|---|
T |
resolve(T pOld,
T pNew)
Resolves duplicates according to a certain strategy. |
| Field Detail |
|---|
static final DuplicateHandler<?> USE_FIRST_VALUE
CollectionUtil.invert(java.util.Map, java.util.Map, DuplicateHandler)static final DuplicateHandler<?> USE_LAST_VALUE
CollectionUtil.invert(java.util.Map, java.util.Map, DuplicateHandler)static final DuplicateHandler<?> DUPLICATES_AS_ARRAY
Object array.
CollectionUtil.invert(java.util.Map, java.util.Map, DuplicateHandler)static final DuplicateHandler<String> DUPLICATES_AS_CSV
String.
Note that all values should allready be Strings if using this
handler.
CollectionUtil.invert(java.util.Map, java.util.Map, DuplicateHandler)| Method Detail |
|---|
T resolve(T pOld,
T pNew)
pOld - the old valuepNew - the new value
IllegalArgumentException - is the arguments cannot be resolved for
some reason.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||