equal
deleted
inserted
replaced
334 * |
334 * |
335 * @throws SecurityException |
335 * @throws SecurityException |
336 * if a security manager exists and its {@link |
336 * if a security manager exists and its {@link |
337 * java.lang.SecurityManager#checkSecurityAccess} method |
337 * java.lang.SecurityManager#checkSecurityAccess} method |
338 * denies access to set property values. |
338 * denies access to set property values. |
|
339 * |
|
340 * @since 1.8 |
339 */ |
341 */ |
340 @Override |
342 @Override |
341 public synchronized Object putIfAbsent(Object key, Object value) { |
343 public synchronized Object putIfAbsent(Object key, Object value) { |
342 check("putProviderProperty."+name); |
344 check("putProviderProperty."+name); |
343 if (debug != null) { |
345 if (debug != null) { |
383 * |
385 * |
384 * @throws SecurityException |
386 * @throws SecurityException |
385 * if a security manager exists and its {@link |
387 * if a security manager exists and its {@link |
386 * java.lang.SecurityManager#checkSecurityAccess} method |
388 * java.lang.SecurityManager#checkSecurityAccess} method |
387 * denies access to remove this provider's properties. |
389 * denies access to remove this provider's properties. |
|
390 * |
|
391 * @since 1.8 |
388 */ |
392 */ |
389 @Override |
393 @Override |
390 public synchronized boolean remove(Object key, Object value) { |
394 public synchronized boolean remove(Object key, Object value) { |
391 check("removeProviderProperty."+name); |
395 check("removeProviderProperty."+name); |
392 if (debug != null) { |
396 if (debug != null) { |
406 * |
410 * |
407 * @throws SecurityException |
411 * @throws SecurityException |
408 * if a security manager exists and its {@link |
412 * if a security manager exists and its {@link |
409 * java.lang.SecurityManager#checkSecurityAccess} method |
413 * java.lang.SecurityManager#checkSecurityAccess} method |
410 * denies access to set property values. |
414 * denies access to set property values. |
|
415 * |
|
416 * @since 1.8 |
411 */ |
417 */ |
412 @Override |
418 @Override |
413 public synchronized boolean replace(Object key, Object oldValue, |
419 public synchronized boolean replace(Object key, Object oldValue, |
414 Object newValue) { |
420 Object newValue) { |
415 check("putProviderProperty." + name); |
421 check("putProviderProperty." + name); |
431 * |
437 * |
432 * @throws SecurityException |
438 * @throws SecurityException |
433 * if a security manager exists and its {@link |
439 * if a security manager exists and its {@link |
434 * java.lang.SecurityManager#checkSecurityAccess} method |
440 * java.lang.SecurityManager#checkSecurityAccess} method |
435 * denies access to set property values. |
441 * denies access to set property values. |
|
442 * |
|
443 * @since 1.8 |
436 */ |
444 */ |
437 @Override |
445 @Override |
438 public synchronized Object replace(Object key, Object value) { |
446 public synchronized Object replace(Object key, Object value) { |
439 check("putProviderProperty." + name); |
447 check("putProviderProperty." + name); |
440 |
448 |
457 * |
465 * |
458 * @throws SecurityException |
466 * @throws SecurityException |
459 * if a security manager exists and its {@link |
467 * if a security manager exists and its {@link |
460 * java.lang.SecurityManager#checkSecurityAccess} method |
468 * java.lang.SecurityManager#checkSecurityAccess} method |
461 * denies access to set property values. |
469 * denies access to set property values. |
|
470 * |
|
471 * @since 1.8 |
462 */ |
472 */ |
463 @Override |
473 @Override |
464 public synchronized void replaceAll(BiFunction<? super Object, ? super Object, ? extends Object> function) { |
474 public synchronized void replaceAll(BiFunction<? super Object, ? super Object, ? extends Object> function) { |
465 check("putProviderProperty." + name); |
475 check("putProviderProperty." + name); |
466 |
476 |
483 * |
493 * |
484 * @throws SecurityException |
494 * @throws SecurityException |
485 * if a security manager exists and its {@link |
495 * if a security manager exists and its {@link |
486 * java.lang.SecurityManager#checkSecurityAccess} method |
496 * java.lang.SecurityManager#checkSecurityAccess} method |
487 * denies access to set property values or remove properties. |
497 * denies access to set property values or remove properties. |
|
498 * |
|
499 * @since 1.8 |
488 */ |
500 */ |
489 @Override |
501 @Override |
490 public synchronized Object compute(Object key, |
502 public synchronized Object compute(Object key, |
491 BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) { |
503 BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) { |
492 check("putProviderProperty." + name); |
504 check("putProviderProperty." + name); |
512 * |
524 * |
513 * @throws SecurityException |
525 * @throws SecurityException |
514 * if a security manager exists and its {@link |
526 * if a security manager exists and its {@link |
515 * java.lang.SecurityManager#checkSecurityAccess} method |
527 * java.lang.SecurityManager#checkSecurityAccess} method |
516 * denies access to set property values and remove properties. |
528 * denies access to set property values and remove properties. |
|
529 * |
|
530 * @since 1.8 |
517 */ |
531 */ |
518 @Override |
532 @Override |
519 public synchronized Object computeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { |
533 public synchronized Object computeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { |
520 check("putProviderProperty." + name); |
534 check("putProviderProperty." + name); |
521 check("removeProviderProperty" + name); |
535 check("removeProviderProperty" + name); |
539 * |
553 * |
540 * @throws SecurityException |
554 * @throws SecurityException |
541 * if a security manager exists and its {@link |
555 * if a security manager exists and its {@link |
542 * java.lang.SecurityManager#checkSecurityAccess} method |
556 * java.lang.SecurityManager#checkSecurityAccess} method |
543 * denies access to set property values or remove properties. |
557 * denies access to set property values or remove properties. |
|
558 * |
|
559 * @since 1.8 |
544 */ |
560 */ |
545 @Override |
561 @Override |
546 public synchronized Object computeIfPresent(Object key, BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) { |
562 public synchronized Object computeIfPresent(Object key, BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) { |
547 check("putProviderProperty." + name); |
563 check("putProviderProperty." + name); |
548 check("removeProviderProperty" + name); |
564 check("removeProviderProperty" + name); |
569 * |
585 * |
570 * @throws SecurityException |
586 * @throws SecurityException |
571 * if a security manager exists and its {@link |
587 * if a security manager exists and its {@link |
572 * java.lang.SecurityManager#checkSecurityAccess} method |
588 * java.lang.SecurityManager#checkSecurityAccess} method |
573 * denies access to set property values or remove properties. |
589 * denies access to set property values or remove properties. |
|
590 * |
|
591 * @since 1.8 |
574 */ |
592 */ |
575 @Override |
593 @Override |
576 public synchronized Object merge(Object key, Object value, BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) { |
594 public synchronized Object merge(Object key, Object value, BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) { |
577 check("putProviderProperty." + name); |
595 check("putProviderProperty." + name); |
578 check("removeProviderProperty" + name); |
596 check("removeProviderProperty" + name); |
587 @Override |
605 @Override |
588 public Object get(Object key) { |
606 public Object get(Object key) { |
589 checkInitialized(); |
607 checkInitialized(); |
590 return super.get(key); |
608 return super.get(key); |
591 } |
609 } |
592 |
610 /** |
|
611 * @since 1.8 |
|
612 */ |
593 @Override |
613 @Override |
594 public synchronized Object getOrDefault(Object key, Object defaultValue) { |
614 public synchronized Object getOrDefault(Object key, Object defaultValue) { |
595 checkInitialized(); |
615 checkInitialized(); |
596 return super.getOrDefault(key, defaultValue); |
616 return super.getOrDefault(key, defaultValue); |
597 } |
617 } |
598 |
618 |
|
619 /** |
|
620 * @since 1.8 |
|
621 */ |
599 @Override |
622 @Override |
600 public synchronized void forEach(BiConsumer<? super Object, ? super Object> action) { |
623 public synchronized void forEach(BiConsumer<? super Object, ? super Object> action) { |
601 checkInitialized(); |
624 checkInitialized(); |
602 super.forEach(action); |
625 super.forEach(action); |
603 } |
626 } |