Lines Matching refs:value
69 * <p>Providing a {@code null} {@code value} will indicate a forced use of
76 * @param value The new selection for that setting, or {@code null} to force
79 * {@code value} is different from any already stored.
83 public <T> boolean set(Key<T> key, T value) {
89 // Only save the value if it's different from the one we already have
90 if (!mDictionary.containsKey(key) || !Objects.equals(value, currentValue)) {
91 mDictionary.put(key, value);
107 * specified setting already had a value or was forced to default.
146 * to its default value or simply unset. While {@link #get} will return
151 * @return Whether that setting has a value that will propagate with unions.
163 * Check whether the value of the specified setting matches the given one.
169 * @param value Value to test for equality against.
172 public <T> boolean matches(Key<T> key, T value) {
173 return Objects.equals(get(key), value);
181 * that the object's key/value pairs have changed at all, but the same
248 T value = get(key);
249 if (value != null) {
250 requestBuilder.set(key, value);