Home | History | Annotate | Download | only in config

Lines Matching refs:current

32         Object update(String optionName, Object current, Object update)
34 if (current == null) return update;
35 return current;
42 Object update(String optionName, Object current, Object update)
51 Object update(String optionName, Object current, Object update)
53 if (current == null) return update;
54 if (compare(optionName, current, update) < 0) {
55 // current < update; so use the update
58 // current >= update; so keep current
59 return current;
67 Object update(String optionName, Object current, Object update)
69 if (current == null) return update;
70 if (compare(optionName, current, update) > 0) {
71 // current > update; so use the update
74 // current <= update; so keep current
75 return current;
83 Object update(String optionName, Object current, Object update)
85 if (current == null) return update;
92 abstract Object update(String optionName, Object current, Object update)
96 * Takes the current value and the update value, and returns the value to be set. Assumes
101 Object current;
103 current = field.get(optionSource);
108 return update(optionName, current, update);
116 private static int compare(String optionName, Object current, Object update)
119 if (current instanceof Comparable) {
120 compCurrent = (Comparable) current;
125 current.getClass().getSimpleName(), optionName));
133 current.getClass().getName(), current, update.getClass().getName(), update), e);