| 2713 | } |
| 2714 | |
| 2715 | private static class DateElementRule |
| 2716 | implements ElementRule<PlainDate, PlainDate> { |
| 2717 | |
| 2718 | //~ Methoden ------------------------------------------------------ |
| 2719 | |
| 2720 | @Override |
| 2721 | public PlainDate getValue(PlainDate context) { |
| 2722 | |
| 2723 | return context; |
| 2724 | |
| 2725 | } |
| 2726 | |
| 2727 | @Override |
| 2728 | public PlainDate withValue( |
| 2729 | PlainDate context, |
| 2730 | PlainDate value, |
| 2731 | boolean lenient |
| 2732 | ) { |
| 2733 | |
| 2734 | if (value == null) { |
| 2735 | throw new IllegalArgumentException("Missing date value."); |
| 2736 | } |
| 2737 | |
| 2738 | return value; |
| 2739 | |
| 2740 | } |
| 2741 | |
| 2742 | @Override |
| 2743 | public boolean isValid( |
| 2744 | PlainDate context, |
| 2745 | PlainDate value |
| 2746 | ) { |
| 2747 | |
| 2748 | return (value != null); |
| 2749 | |
| 2750 | } |
| 2751 | |
| 2752 | @Override |
| 2753 | public PlainDate getMinimum(PlainDate context) { |
| 2754 | |
| 2755 | return PlainDate.MIN; |
| 2756 | |
| 2757 | } |
| 2758 | |
| 2759 | @Override |
| 2760 | public PlainDate getMaximum(PlainDate context) { |
| 2761 | |
| 2762 | return PlainDate.MAX; |
| 2763 | |
| 2764 | } |
| 2765 | |
| 2766 | @Override |
| 2767 | public ChronoElement<?> getChildAtFloor(PlainDate context) { |
| 2768 | |
| 2769 | return null; |
| 2770 | |
| 2771 | } |
| 2772 |
nothing calls this directly
no outgoing calls
no test coverage detected