public class ChangeUtils extends Object
| Constructor and Description |
|---|
ChangeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(Record from,
Record to,
String... fields) |
static Diff |
copyAndDiff(Record from,
Record to)
copy different (equals) fields and return resulting list of changed fields + old values
|
static Diff |
copyAndDiff(Record from,
Record to,
String[] fields) |
static <K> Diff |
diff(Record<K> record,
Record<K> prevRecord) |
static int |
indexOf(String field,
String[] changedFields) |
static Diff |
mayCopyAndDiff(Record from,
Record to,
String[] fields,
boolean copy) |
static String[] |
merge(String[] fieldsA,
String[] fieldsB) |
public static Diff copyAndDiff(Record from, Record to)
from - to - public static Diff mayCopyAndDiff(Record from, Record to, String[] fields, boolean copy)
Copyright © 2015. All rights reserved.