Home | History | Annotate | Download | only in config

Lines Matching refs:update

28     /** once an option is set, subsequent attempts to update it should be ignored. */
31 boolean shouldUpdate(String optionName, Object current, Object update)
40 boolean shouldUpdate(String optionName, Object current, Object update)
49 boolean shouldUpdate(String optionName, Object current, Object update)
51 return current == null || compare(optionName, current, update) < 0;
58 boolean shouldUpdate(String optionName, Object current, Object update)
60 return current == null || compare(optionName, current, update) > 0;
67 boolean shouldUpdate(String optionName, Object current, Object update)
72 "Attempted to update immutable value (%s) for option \"%s\"", optionName,
79 abstract boolean shouldUpdate(String optionName, Object current, Object update)
83 * Takes the current value and the update value, and returns whether the value should be
84 * updated. Assumes that <code>update</code> is never null.
86 public boolean shouldUpdate(String optionName, Object optionSource, Field field, Object update)
95 return shouldUpdate(optionName, current, update);
103 private static int compare(String optionName, Object current, Object update)
116 return compCurrent.compareTo(update);
120 current.getClass().getName(), current, update.getClass().getName(), update), e);