Class ClasslibSpec
classlib { } block: parts of the Java class library that cost bytes in every module
that has them, so a project switches them on.
Everything is off by default, and a project that sets nothing gets the same module it would have got before the block existed.
- Since:
- 1.0.3
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClasslibSpec
public ClasslibSpec()
-
-
Method Details
-
getZoneHistory
Returns whetherZoneRules.getTransitions()andgetTransitionRules()answer.Off, both refuse, because the platform's timezone database answers every question about an offset but cannot list a zone's changes. On, they are read from the database that ships with ThreeTen-Backport, which adds its 108 KB to the module, and
nextTransitionandpreviousTransitionanswer from that history too, so they find a change at any distance where the search answersnullpast 400 days. Offsets and daylight saving still come from the platform.- Returns:
- whether
ZoneRules.getTransitions()andgetTransitionRules()answer
-
getDateFormat
Returns whetherString.formattakes the%tand%Tconversions.Off, both refuse and name
DateTimeFormatter. On, they format along, aDate, aCalendaror ajava.timevalue as a JVM does, in English: every conversion except%tZand%tc, an epoch value before 1582-10-15, and any locale other thanLocale.US,Locale.ENGLISHor none, which refuse. The code is linked only by a program that formats a date.- Returns:
- whether
String.formattakes the%tand%Tconversions
-