(ChronoEntity<?> context)
| 852 | } |
| 853 | |
| 854 | @Override |
| 855 | public String getValue(ChronoEntity<?> context) { // used in consistency-check after strict parsing |
| 856 | PlainTime time = context.get(PlainTime.COMPONENT); |
| 857 | if (this.fixed) { |
| 858 | return getFixedCode(time); |
| 859 | } else { |
| 860 | if (this.dayPeriod.isPredefined()) { |
| 861 | Map<String, String> textForms = loadTextForms(this.getLocale(), this.getCalendarType()); |
| 862 | String code = null; |
| 863 | if (time.isMidnight()) { |
| 864 | code = "midnight"; |
| 865 | } else if (time.isSimultaneous(PlainTime.of(12))) { |
| 866 | code = "noon"; |
| 867 | } |
| 868 | if (code != null) { |
| 869 | String key = createKey(textForms, TextWidth.ABBREVIATED, OutputContext.FORMAT, code); |
| 870 | if (textForms.containsKey(key)) { |
| 871 | return code; |
| 872 | } |
| 873 | } |
| 874 | } |
| 875 | PlainTime key = this.dayPeriod.getStart(time); |
| 876 | return this.dayPeriod.codeMap.get(key); |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | @Override |
| 881 | public String getMinimum(ChronoEntity<?> context) { |
nothing calls this directly
no test coverage detected