- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {DateTime d =
new DateTime()
DateTimeFormatter formatter;String text;formatter.parseDateTime(text)
Object instant;new DateTime(instant)
- Smart code suggestions by Codota
}
/** * Applies a {@link StateDiff} in-place onto a base {@link State}. * <p> * Uses thread-safe datastructures. */ public static void applyDiff(State state, StateDiff stateDiff) { for (Entry<String, Serializable> en : stateDiff.entrySet()) { applyDiff(state, en.getKey(), en.getValue()); } }
protected void processStateDiff(StateDiff diff, String prefix) { String elemPrefix = prefix == null ? "" : prefix + '.'; for (Entry<String, Serializable> en : diff.entrySet()) { String name = elemPrefix + en.getKey(); Serializable value = en.getValue(); if (value instanceof StateDiff) { processStateDiff((StateDiff) value, name); } else if (value instanceof ListDiff) { processListDiff((ListDiff) value, name); } else if (value instanceof Delta) { processDelta((Delta) value, name); } else { // not a diff processValue(name, value); } } }