/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ThaiBuddhistDate.java | 305 public ThaiBuddhistDate with(TemporalField field, long newValue) { argument 308 if (getLong(f) == newValue) { 313 getChronology().range(f).checkValidValue(newValue, f); 314 return plusMonths(newValue - getProlepticMonth()); 318 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); 329 return with(isoDate.with(field, newValue)); 331 return super.with(field, newValue);
|
H A D | HijrahDate.java | 388 public HijrahDate with(TemporalField field, long newValue) { argument 392 chrono.range(f).checkValidValue(newValue, f); // TODO: validate value 393 int nvalue = (int) newValue; 395 case DAY_OF_WEEK: return plusDays(newValue - getDayOfWeek()); 396 case ALIGNED_DAY_OF_WEEK_IN_MONTH: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH)); 397 case ALIGNED_DAY_OF_WEEK_IN_YEAR: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_YEAR)); 400 case EPOCH_DAY: return new HijrahDate(chrono, newValue); 401 case ALIGNED_WEEK_OF_MONTH: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_MONTH)) * 7); 402 case ALIGNED_WEEK_OF_YEAR: return plusDays((newValue - getLong(ALIGNED_WEEK_OF_YEAR)) * 7); 404 case PROLEPTIC_MONTH: return plusMonths(newValue [all...] |
H A D | JapaneseDate.java | 511 public JapaneseDate with(TemporalField field, long newValue) { argument 514 if (getLong(f) == newValue) { // getLong() validates for supported fields 521 int nvalue = getChronology().range(f).checkValidIntValue(newValue, f); 534 return with(isoDate.with(field, newValue)); 536 return super.with(field, newValue);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | ChronoField.java | 770 public <R extends Temporal> R adjustInto(R temporal, long newValue) { argument 771 return (R) temporal.with(this, newValue);
|
H A D | WeekFields.java | 894 public <R extends Temporal> R adjustInto(R temporal, long newValue) { argument 896 int newVal = range.checkValidIntValue(newValue, this); // lenient check range 907 return (R) ofWeekBasedYear(Chronology.from(temporal), (int)newValue, wowby, idow); 918 final int newValue = Math.toIntExact(value); // broad limit makes overflow checking lighter 944 return resolveWoM(fieldValues, chrono, year, month, newValue, dow, resolverStyle); 947 return resolveWoY(fieldValues, chrono, year, newValue, dow, resolverStyle);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Map.java | 803 * map.put(key, newValue); 811 * newValue is also null. 820 * @param newValue value to be associated with the specified key 827 * @throws NullPointerException if a specified key or newValue is null, 836 default boolean replace(K key, V oldValue, V newValue) { argument 842 put(key, newValue); 923 * V newValue = mappingFunction.apply(key); 924 * if (newValue != null) 925 * map.put(key, newValue); 971 V newValue; [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicIntegerArray.java | 125 * @param newValue the new value 127 public final void set(int i, int newValue) { argument 128 U.putIntVolatile(array, checkedByteOffset(i), newValue); 135 * @param newValue the new value 138 public final void lazySet(int i, int newValue) { argument 139 U.putOrderedInt(array, checkedByteOffset(i), newValue); 147 * @param newValue the new value 150 public final int getAndSet(int i, int newValue) { argument 151 return U.getAndSetInt(array, checkedByteOffset(i), newValue);
|
H A D | AtomicLongArray.java | 124 * @param newValue the new value 126 public final void set(int i, long newValue) { argument 127 U.putLongVolatile(array, checkedByteOffset(i), newValue); 134 * @param newValue the new value 137 public final void lazySet(int i, long newValue) { argument 138 U.putOrderedLong(array, checkedByteOffset(i), newValue); 146 * @param newValue the new value 149 public final long getAndSet(int i, long newValue) { argument 150 return U.getAndSetLong(array, checkedByteOffset(i), newValue);
|
H A D | AtomicLongFieldUpdater.java | 142 * @param newValue the new value 144 public abstract void set(T obj, long newValue); argument 151 * @param newValue the new value 154 public abstract void lazySet(T obj, long newValue); argument 170 * @param newValue the new value 173 public long getAndSet(T obj, long newValue) { argument 177 } while (!compareAndSet(obj, prev, newValue)); 453 public final void set(T obj, long newValue) { argument 455 U.putLongVolatile(obj, offset, newValue); 458 public final void lazySet(T obj, long newValue) { argument 468 getAndSet(T obj, long newValue) argument 588 set(T obj, long newValue) argument 595 lazySet(T obj, long newValue) argument [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | TCKChronoLocalDate.java | 476 public <R extends Temporal> R adjustInto(R temporal, long newValue) { argument
|
H A D | TCKChronoLocalDateTime.java | 497 public <R extends Temporal> R adjustInto(R temporal, long newValue) { argument
|
H A D | TCKChronoZonedDateTime.java | 499 public <R extends Temporal> R adjustInto(R temporal, long newValue) { argument
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | ProcessEnvironment.java | 309 public String setValue(String newValue) { argument 310 return e.setValue(Value.valueOf(newValue)).toString();
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | NumberFormat.java | 620 * @param newValue {@code true} if grouping is used; 624 public void setGroupingUsed(boolean newValue) { argument 625 groupingUsed = newValue; 646 * @param newValue the maximum number of integer digits to be shown; if 651 public void setMaximumIntegerDigits(int newValue) { argument 652 maximumIntegerDigits = Math.max(0,newValue); 676 * @param newValue the minimum number of integer digits to be shown; if 681 public void setMinimumIntegerDigits(int newValue) { argument 682 minimumIntegerDigits = Math.max(0,newValue); 706 * @param newValue th 711 setMaximumFractionDigits(int newValue) argument 741 setMinimumFractionDigits(int newValue) argument [all...] |
H A D | AttributedString.java | 1122 public Object setValue(Object newValue) { argument
|
H A D | DecimalFormat.java | 874 * @param newValue the new positive prefix 876 public void setPositivePrefix (String newValue) { argument 877 icuDecimalFormat.setPositivePrefix(newValue); 894 * @param newValue the new negative prefix 896 public void setNegativePrefix (String newValue) { argument 897 icuDecimalFormat.setNegativePrefix(newValue); 914 * @param newValue the new positive suffix 916 public void setPositiveSuffix (String newValue) { argument 917 icuDecimalFormat.setPositiveSuffix(newValue); 934 * @param newValue th 936 setNegativeSuffix(String newValue) argument 965 setMultiplier(int newValue) argument 995 setGroupingSize(int newValue) argument 1014 setGroupingUsed(boolean newValue) argument 1038 setDecimalSeparatorAlwaysShown(boolean newValue) argument 1064 setParseBigDecimal(boolean newValue) argument 1242 setMaximumIntegerDigits(int newValue) argument 1263 setMinimumIntegerDigits(int newValue) argument 1284 setMaximumFractionDigits(int newValue) argument 1305 setMinimumFractionDigits(int newValue) argument [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | Instant.java | 691 * @param newValue the new value of the field in the result 698 public Instant with(TemporalField field, long newValue) { argument 701 f.checkValidValue(newValue); 704 int nval = (int) newValue * 1000_000; 708 int nval = (int) newValue * 1000; 711 case NANO_OF_SECOND: return (newValue != nanos ? create(seconds, (int) newValue) : this); 712 case INSTANT_SECONDS: return (newValue != seconds ? create(newValue, nanos) : this); 716 return field.adjustInto(this, newValue); [all...] |
H A D | Year.java | 606 * @param newValue the new value of the field in the result 613 public Year with(TemporalField field, long newValue) { argument 616 f.checkValidValue(newValue); 618 case YEAR_OF_ERA: return Year.of((int) (year < 1 ? 1 - newValue : newValue)); 619 case YEAR: return Year.of((int) newValue); 620 case ERA: return (getLong(ERA) == newValue ? this : Year.of(1 - year)); 624 return field.adjustInto(this, newValue);
|
H A D | YearMonth.java | 669 * @param newValue the new value of the field in the result 676 public YearMonth with(TemporalField field, long newValue) { argument 679 f.checkValidValue(newValue); 681 case MONTH_OF_YEAR: return withMonth((int) newValue); 682 case PROLEPTIC_MONTH: return plusMonths(newValue - getProlepticMonth()); 683 case YEAR_OF_ERA: return withYear((int) (year < 1 ? 1 - newValue : newValue)); 684 case YEAR: return withYear((int) newValue); 685 case ERA: return (getLong(ERA) == newValue ? this : withYear(1 - year)); 689 return field.adjustInto(this, newValue); [all...] |
H A D | LocalDate.java | 1007 * @param newValue the new value of the field in the result 1014 public LocalDate with(TemporalField field, long newValue) { argument 1017 f.checkValidValue(newValue); 1019 case DAY_OF_WEEK: return plusDays(newValue - getDayOfWeek().getValue()); 1020 case ALIGNED_DAY_OF_WEEK_IN_MONTH: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_MONTH)); 1021 case ALIGNED_DAY_OF_WEEK_IN_YEAR: return plusDays(newValue - getLong(ALIGNED_DAY_OF_WEEK_IN_YEAR)); 1022 case DAY_OF_MONTH: return withDayOfMonth((int) newValue); 1023 case DAY_OF_YEAR: return withDayOfYear((int) newValue); 1024 case EPOCH_DAY: return LocalDate.ofEpochDay(newValue); 1025 case ALIGNED_WEEK_OF_MONTH: return plusWeeks(newValue [all...] |
H A D | LocalTime.java | 820 * @param newValue the new value of the field in the result 827 public LocalTime with(TemporalField field, long newValue) { argument 830 f.checkValidValue(newValue); 832 case NANO_OF_SECOND: return withNano((int) newValue); 833 case NANO_OF_DAY: return LocalTime.ofNanoOfDay(newValue); 834 case MICRO_OF_SECOND: return withNano((int) newValue * 1000); 835 case MICRO_OF_DAY: return LocalTime.ofNanoOfDay(newValue * 1000); 836 case MILLI_OF_SECOND: return withNano((int) newValue * 1000_000); 837 case MILLI_OF_DAY: return LocalTime.ofNanoOfDay(newValue * 1000_000); 838 case SECOND_OF_MINUTE: return withSecond((int) newValue); [all...] |
H A D | OffsetTime.java | 714 * @param newValue the new value of the field in the result 721 public OffsetTime with(TemporalField field, long newValue) { argument 725 return with(time, ZoneOffset.ofTotalSeconds(f.checkValidIntValue(newValue))); 727 return with(time.with(field, newValue), offset); 729 return field.adjustInto(this, newValue);
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
H A D | AbstractPreferences.java | 1518 private void enqueuePreferenceChangeEvent(String key, String newValue) { argument 1521 eventQueue.add(new PreferenceChangeEvent(this, key, newValue));
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | Unsafe.java | 126 * @param newValue new value to store in the field if the contents are 133 int expectedValue, int newValue); 142 * @param newValue new value to store in the field if the contents are 149 long expectedValue, long newValue); 158 * @param newValue new value to store in the field if the contents are 165 Object expectedValue, Object newValue); 184 * @param newValue the value to store 187 public native void putIntVolatile(Object obj, long offset, int newValue); argument 206 * @param newValue the value to store 209 public native void putLongVolatile(Object obj, long offset, long newValue); argument 132 compareAndSwapInt(Object obj, long offset, int expectedValue, int newValue) argument 148 compareAndSwapLong(Object obj, long offset, long expectedValue, long newValue) argument 164 compareAndSwapObject(Object obj, long offset, Object expectedValue, Object newValue) argument 231 putObjectVolatile(Object obj, long offset, Object newValue) argument 252 putInt(Object obj, long offset, int newValue) argument 258 putOrderedInt(Object obj, long offset, int newValue) argument 278 putLong(Object obj, long offset, long newValue) argument 284 putOrderedLong(Object obj, long offset, long newValue) argument 304 putObject(Object obj, long offset, Object newValue) argument 310 putOrderedObject(Object obj, long offset, Object newValue) argument 317 putBoolean(Object obj, long offset, boolean newValue) argument 321 putByte(Object obj, long offset, byte newValue) argument 325 putChar(Object obj, long offset, char newValue) argument 329 putShort(Object obj, long offset, short newValue) argument 333 putFloat(Object obj, long offset, float newValue) argument 337 putDouble(Object obj, long offset, double newValue) argument 508 getAndSetInt(Object o, long offset, int newValue) argument 528 getAndSetLong(Object o, long offset, long newValue) argument 548 getAndSetObject(Object o, long offset, Object newValue) argument [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | HttpCookie.java | 534 * @param newValue 539 public void setValue(String newValue) { argument 540 value = newValue;
|