Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java72 assertEquals(weekField.isSupportedBy(LocalTime.NOON), false); in test_WOWBY_isSupportedBy()
73 assertEquals(weekField.isSupportedBy(MonthDay.of(2, 1)), false); in test_WOWBY_isSupportedBy()
74 assertEquals(weekField.isSupportedBy(LocalDate.MIN), true); in test_WOWBY_isSupportedBy()
75 assertEquals(weekField.isSupportedBy(OffsetDateTime.MAX), true); in test_WOWBY_isSupportedBy()
80 … assertEquals(IsoFields.WEEK_OF_WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WOWBY_isSupportedBy_fieldsDiffer()
81 … assertEquals(WeekFields.ISO.weekOfWeekBasedYear().isSupportedBy(ThaiBuddhistDate.now()), true); in test_WOWBY_isSupportedBy_fieldsDiffer()
113 assertEquals(yearField.isSupportedBy(LocalTime.NOON), false); in test_WBY_isSupportedBy()
114 assertEquals(yearField.isSupportedBy(MonthDay.of(2, 1)), false); in test_WBY_isSupportedBy()
115 assertEquals(yearField.isSupportedBy(LocalDate.MIN), true); in test_WBY_isSupportedBy()
116 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.java304 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
310 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
326 if (isSupportedBy(temporal) == false) { in getFrom()
393 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
398 if (isSupportedBy(temporal) == false) { in getFrom()
442 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
447 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
454 if (isSupportedBy(temporal) == false) { in getFrom()
523 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method
528 if (isSupportedBy(temporal) == false) { in getFrom()
[all …]
DJulianFields.java263 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in JulianFields.Field
269 if (isSupportedBy(temporal) == false) { in rangeRefinedBy()
DTemporalField.java201 boolean isSupportedBy(TemporalAccessor temporal); in isSupportedBy() method
DTemporalUnit.java168 default boolean isSupportedBy(Temporal temporal) { in isSupportedBy() method
DChronoField.java754 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()
DTCKChronoField.java241 assertEquals(field.isSupportedBy(accessor), isSupported); in test_supportedAccessor()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java387 return field != null && field.isSupportedBy(this); in isSupported()
413 return unit != null && unit.isSupportedBy(this); in isSupported()
DEra.java149 return field != null && field.isSupportedBy(this); in isSupported()
DChronoLocalDateTime.java254 return unit != null && unit.isSupportedBy(this); in isSupported()
DChronoZonedDateTime.java401 return unit != null && unit.isSupportedBy(this); in isSupported()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronoZonedDateTimeTest.java58 verify(temporalUnit).isSupportedBy(chronoZonedDateTime); in isSupported_defersToArgument()
DEraTest.java109 public boolean isSupportedBy(TemporalAccessor temporal) { in isSupportedBy() method in EraTest.TestTemporalField
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java255 return field != null && field.isSupportedBy(this); in isSupported()
DYear.java366 return field != null && field.isSupportedBy(this); in isSupported()
400 return unit != null && unit.isSupportedBy(this); in isSupported()
DMonth.java282 return field != null && field.isSupportedBy(this); in isSupported()
DYearMonth.java353 return field != null && field.isSupportedBy(this); in isSupported()
388 return unit != null && unit.isSupportedBy(this); in isSupported()
DInstant.java455 return field != null && field.isSupportedBy(this); in isSupported()
492 return unit != null && unit.isSupportedBy(this); in isSupported()
DOffsetDateTime.java479 return field instanceof ChronoField || (field != null && field.isSupportedBy(this)); in isSupported()
523 return unit != null && unit.isSupportedBy(this); in isSupported()
DMonthDay.java347 return field != null && field.isSupportedBy(this); in isSupported()
DLocalTime.java538 return field != null && field.isSupportedBy(this); in isSupported()
574 return unit != null && unit.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

12