private static final class DateTimeZoneBuilder.PrecalculatedZone extends DateTimeZone
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
iNameKeys |
private int[] |
iStandardOffsets |
private DateTimeZoneBuilder.DSTZone |
iTailZone |
private long[] |
iTransitions |
private int[] |
iWallOffsets |
private static long |
serialVersionUID |
UTC| Modifier | Constructor and Description |
|---|---|
private |
PrecalculatedZone(java.lang.String id,
long[] transitions,
int[] wallOffsets,
int[] standardOffsets,
java.lang.String[] nameKeys,
DateTimeZoneBuilder.DSTZone tailZone)
Constructor used ONLY for valid input, loaded via static methods.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static DateTimeZoneBuilder.PrecalculatedZone |
create(java.lang.String id,
boolean outputID,
java.util.ArrayList<DateTimeZoneBuilder.Transition> transitions,
DateTimeZoneBuilder.DSTZone tailZone)
Factory to create instance from builder.
|
boolean |
equals(java.lang.Object obj)
Compare this datetime zone with another.
|
java.lang.String |
getNameKey(long instant)
Returns a non-localized name that is unique to this time zone.
|
int |
getOffset(long instant)
Gets the millisecond offset to add to UTC to get local time.
|
int |
getStandardOffset(long instant)
Gets the standard millisecond offset to add to UTC to get local time,
when standard time is in effect.
|
boolean |
isCachable() |
boolean |
isFixed()
Returns true if this time zone has no transitions.
|
long |
nextTransition(long instant)
Advances the given instant to where the time zone offset or name changes.
|
long |
previousTransition(long instant)
Retreats the given instant to where the time zone offset or name changes.
|
(package private) static DateTimeZoneBuilder.PrecalculatedZone |
readFrom(java.io.DataInput in,
java.lang.String id) |
void |
writeTo(java.io.DataOutput out) |
adjustOffset, convertLocalToUTC, convertLocalToUTC, convertUTCToLocal, forID, forOffsetHours, forOffsetHoursMinutes, forOffsetMillis, forTimeZone, getAvailableIDs, getDefault, getID, getMillisKeepLocal, getName, getName, getNameProvider, getOffset, getOffsetFromLocal, getProvider, getShortName, getShortName, hashCode, isLocalDateTimeGap, isStandardOffset, setDefault, setNameProvider, setProvider, toString, toTimeZone, writeReplaceprivate static final long serialVersionUID
private final long[] iTransitions
private final int[] iWallOffsets
private final int[] iStandardOffsets
private final java.lang.String[] iNameKeys
private final DateTimeZoneBuilder.DSTZone iTailZone
private PrecalculatedZone(java.lang.String id,
long[] transitions,
int[] wallOffsets,
int[] standardOffsets,
java.lang.String[] nameKeys,
DateTimeZoneBuilder.DSTZone tailZone)
static DateTimeZoneBuilder.PrecalculatedZone readFrom(java.io.DataInput in, java.lang.String id) throws java.io.IOException
java.io.IOExceptionstatic DateTimeZoneBuilder.PrecalculatedZone create(java.lang.String id, boolean outputID, java.util.ArrayList<DateTimeZoneBuilder.Transition> transitions, DateTimeZoneBuilder.DSTZone tailZone)
id - the zone idoutputID - true if the zone id should be outputtransitions - the list of Transition objectstailZone - optional zone for getting info beyond precalculated tablespublic java.lang.String getNameKey(long instant)
DateTimeZonegetNameKey in class DateTimeZoneinstant - milliseconds from 1970-01-01T00:00:00Z to get the name forpublic int getOffset(long instant)
DateTimeZonegetOffset in class DateTimeZoneinstant - milliseconds from 1970-01-01T00:00:00Z to get the offset forpublic int getStandardOffset(long instant)
DateTimeZonegetStandardOffset in class DateTimeZoneinstant - milliseconds from 1970-01-01T00:00:00Z to get the offset forpublic boolean isFixed()
DateTimeZoneisFixed in class DateTimeZonepublic long nextTransition(long instant)
DateTimeZonenextTransition in class DateTimeZoneinstant - milliseconds from 1970-01-01T00:00:00Zpublic long previousTransition(long instant)
DateTimeZonepreviousTransition in class DateTimeZoneinstant - milliseconds from 1970-01-01T00:00:00Zpublic boolean equals(java.lang.Object obj)
DateTimeZoneequals in class DateTimeZoneobj - the object to compare withpublic void writeTo(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic boolean isCachable()