Home
last modified time | relevance | path

Searched refs:isSupportedBy (Results 1 – 25 of 40) sorted by relevance

12

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java74 assertEquals(weekField.isSupportedBy(LocalTime.NOON), false); in test_WOWBY_isSupportedBy()
75 assertEquals(weekField.isSupportedBy(MonthDay.of(2, 1)), false); in test_WOWBY_isSupportedBy()
76 assertEquals(weekField.isSupportedBy(LocalDate.MIN), true); in test_WOWBY_isSupportedBy()
77 assertEquals(weekField.isSupportedBy(OffsetDateTime.MAX), true); in test_WOWBY_isSupportedBy()
82 … assertEquals(IsoFields.WEEK_OF_WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WOWBY_isSupportedBy_fieldsDiffer()
83 … assertEquals(WeekFields.ISO.weekOfWeekBasedYear().isSupportedBy(ThaiBuddhistDate.now()), true); in test_WOWBY_isSupportedBy_fieldsDiffer()
115 assertEquals(yearField.isSupportedBy(LocalTime.NOON), false); in test_WBY_isSupportedBy()
116 assertEquals(yearField.isSupportedBy(MonthDay.of(2, 1)), false); in test_WBY_isSupportedBy()
117 assertEquals(yearField.isSupportedBy(LocalDate.MIN), true); in test_WBY_isSupportedBy()
118 assertEquals(yearField.isSupportedBy(OffsetDateTime.MAX), true); in test_WBY_isSupportedBy()
[all …]
DMockFieldNoValue.java106 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in MockFieldNoValue
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java311 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
317 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
333 if (isSupportedBy(temporal) == false) { in getFrom()
400 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
405 if (isSupportedBy(temporal) == false) { in getFrom()
412 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
464 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
469 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
476 if (isSupportedBy(temporal) == false) { in getFrom()
545 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
[all …]
DJulianFields.java267 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in JulianFields.Field
273 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
DTemporalUnit.java168 default boolean isSupportedBy(Temporal temporal) { in isSupportedBy() method
DTemporalField.java201 boolean isSupportedBy(TemporalAccessor temporal); in isSupportedBy() method
DChronoUnit.java259 public boolean isSupportedBy(Temporal temporal) { in isSupportedBy() method in ChronoUnit
DChronoField.java787 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in ChronoField
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoUnit.java169 …public void test_unitAndTemporal(ChronoUnit unit, Temporal base, boolean isSupportedBy, long amoun… in test_unitAndTemporal() argument
170 assertEquals(unit.isSupportedBy(base), isSupportedBy); in test_unitAndTemporal() local
171 if (isSupportedBy) { in test_unitAndTemporal()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java390 return field != null && field.isSupportedBy(this); in isSupported()
416 return unit != null && unit.isSupportedBy(this); in isSupported()
DEra.java149 return field != null && field.isSupportedBy(this); in isSupported()
DChronoLocalDateTime.java261 return unit != null && unit.isSupportedBy(this); in isSupported()
DChronoZonedDateTime.java408 return unit != null && unit.isSupportedBy(this); in isSupported()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DEraTest.java109 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in EraTest.TestTemporalField
DChronoZonedDateTimeTest.java67 verify(temporalUnit).isSupportedBy(chronoZonedDateTime); in isSupported_defersToArgument()
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java255 return field != null && field.isSupportedBy(this); in isSupported()
DYear.java367 return field != null && field.isSupportedBy(this); in isSupported()
401 return unit != null && unit.isSupportedBy(this); in isSupported()
DMonth.java282 return field != null && field.isSupportedBy(this); in isSupported()
DYearMonth.java354 return field != null && field.isSupportedBy(this); in isSupported()
389 return unit != null && unit.isSupportedBy(this); in isSupported()
DOffsetTime.java394 return field != null && field.isSupportedBy(this); in isSupported()
430 return unit != null && unit.isSupportedBy(this); in isSupported()
DInstant.java456 return field != null && field.isSupportedBy(this); in isSupported()
493 return unit != null && unit.isSupportedBy(this); in isSupported()
DMonthDay.java348 return field != null && field.isSupportedBy(this); in isSupported()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoLocalDate.java403 public boolean isSupportedBy(Temporal temporal) { in isSupportedBy() method in TCKChronoLocalDate.FixedTemporalUnit
460 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in TCKChronoLocalDate.FixedTemporalField
DTCKChronoLocalDateTime.java424 public boolean isSupportedBy(Temporal temporal) { in isSupportedBy() method in TCKChronoLocalDateTime.FixedTemporalUnit
481 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in TCKChronoLocalDateTime.FixedTemporalField
DTCKChronoZonedDateTime.java425 public boolean isSupportedBy(Temporal temporal) { in isSupportedBy() method in TCKChronoZonedDateTime.FixedTemporalUnit
483 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in TCKChronoZonedDateTime.FixedTemporalField

12