Search in sources :

Example 76 with Chronology

use of java.time.chrono.Chronology in project jdk8u_jdk by JetBrains.

the class TestChronoLocalDate method test_date_checkGenerics_genericsMethod.

//-----------------------------------------------------------------------
public void test_date_checkGenerics_genericsMethod() {
    Chronology chrono = ThaiBuddhistChronology.INSTANCE;
    ChronoLocalDate date = chrono.dateNow();
    date = processOK(date);
    date = processClassOK(ThaiBuddhistDate.class);
    date = dateSupplier();
    date = processClassWeird(ThaiBuddhistDate.class);
}
Also used : ChronoLocalDate(java.time.chrono.ChronoLocalDate) ThaiBuddhistDate(java.time.chrono.ThaiBuddhistDate) Chronology(java.time.chrono.Chronology) ThaiBuddhistChronology(java.time.chrono.ThaiBuddhistChronology)

Aggregations

Chronology (java.time.chrono.Chronology)76 Test (org.testng.annotations.Test)65 IsoChronology (java.time.chrono.IsoChronology)59 ThaiBuddhistChronology (java.time.chrono.ThaiBuddhistChronology)58 MinguoChronology (java.time.chrono.MinguoChronology)54 HijrahChronology (java.time.chrono.HijrahChronology)47 JapaneseChronology (java.time.chrono.JapaneseChronology)46 ChronoLocalDate (java.time.chrono.ChronoLocalDate)29 LocalDate (java.time.LocalDate)21 Locale (java.util.Locale)7 TemporalAmount (java.time.temporal.TemporalAmount)6 TemporalUnit (java.time.temporal.TemporalUnit)6 ZoneId (java.time.ZoneId)5 TemporalAccessor (java.time.temporal.TemporalAccessor)5 Clock (java.time.Clock)4 DateTimeException (java.time.DateTimeException)4 Era (java.time.chrono.Era)4 TemporalField (java.time.temporal.TemporalField)4 ChronoLocalDateTime (java.time.chrono.ChronoLocalDateTime)3 DateTimeFormatter (java.time.format.DateTimeFormatter)3