Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.joda.time.tz
Class DateTimeZoneBuilder.PrecalculatedZone  view DateTimeZoneBuilder.PrecalculatedZone download DateTimeZoneBuilder.PrecalculatedZone.java

java.lang.Object
  extended byorg.joda.time.DateTimeZone
      extended byorg.joda.time.tz.DateTimeZoneBuilder.PrecalculatedZone
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
DateTimeZoneBuilder

private static final class DateTimeZoneBuilder.PrecalculatedZone
extends org.joda.time.DateTimeZone


Nested Class Summary
 
Nested classes inherited from class org.joda.time.DateTimeZone
 
Field Summary
private  java.lang.String[] iNameKeys
           
private  int[] iStandardOffsets
           
private  DateTimeZoneBuilder.DSTZone iTailZone
           
private  long[] iTransitions
           
private  int[] iWallOffsets
           
private static long serialVersionUID
           
 
Fields inherited from class org.joda.time.DateTimeZone
UTC
 
Constructor Summary
(package private) DateTimeZoneBuilder.PrecalculatedZone(java.lang.String id, java.util.ArrayList transitions, DateTimeZoneBuilder.DSTZone tailZone)
           
(package private) DateTimeZoneBuilder.PrecalculatedZone(java.lang.String id, long[] transitions, int[] wallOffsets, int[] standardOffsets, java.lang.String[] nameKeys, DateTimeZoneBuilder.DSTZone tailZone)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.joda.time.DateTimeZone
forID, forOffsetHours, forOffsetHoursMinutes, forOffsetMillis, forTimeZone, getAvailableIDs, getDefault, getID, getMillisKeepLocal, getName, getName, getNameProvider, getOffset, getOffsetFromLocal, getProvider, getShortName, getShortName, hashCode, setDefault, setNameProvider, setProvider, toString, toTimeZone, writeReplace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

iTransitions

private final long[] iTransitions

iWallOffsets

private final int[] iWallOffsets

iStandardOffsets

private final int[] iStandardOffsets

iNameKeys

private final java.lang.String[] iNameKeys

iTailZone

private final DateTimeZoneBuilder.DSTZone iTailZone
Constructor Detail

DateTimeZoneBuilder.PrecalculatedZone

DateTimeZoneBuilder.PrecalculatedZone(java.lang.String id,
                                      long[] transitions,
                                      int[] wallOffsets,
                                      int[] standardOffsets,
                                      java.lang.String[] nameKeys,
                                      DateTimeZoneBuilder.DSTZone tailZone)

DateTimeZoneBuilder.PrecalculatedZone

DateTimeZoneBuilder.PrecalculatedZone(java.lang.String id,
                                      java.util.ArrayList transitions,
                                      DateTimeZoneBuilder.DSTZone tailZone)
Method Detail

readFrom

static DateTimeZoneBuilder.PrecalculatedZone readFrom(java.io.DataInput in,
                                                      java.lang.String id)
                                               throws java.io.IOException

getNameKey

public java.lang.String getNameKey(long instant)
Description copied from class: org.joda.time.DateTimeZone
Returns a non-localized name that is unique to this time zone. It can be combined with id to form a unique key for fetching localized names.


getOffset

public int getOffset(long instant)
Description copied from class: org.joda.time.DateTimeZone
Gets the millisecond offset to add to UTC to get local time.


getStandardOffset

public int getStandardOffset(long instant)
Description copied from class: org.joda.time.DateTimeZone
Gets the standard millisecond offset to add to UTC to get local time, when standard time is in effect.


isFixed

public boolean isFixed()
Description copied from class: org.joda.time.DateTimeZone
Returns true if this time zone has no transitions.


nextTransition

public long nextTransition(long instant)
Description copied from class: org.joda.time.DateTimeZone
Advances the given instant to where the time zone offset or name changes. If the instant returned is exactly the same as passed in, then no changes occur after the given instant.


previousTransition

public long previousTransition(long instant)
Description copied from class: org.joda.time.DateTimeZone
Retreats the given instant to where the time zone offset or name changes. If the instant returned is exactly the same as passed in, then no changes occur before the given instant.


equals

public boolean equals(java.lang.Object obj)
Description copied from class: org.joda.time.DateTimeZone
Compare this datetime zone with another.


writeTo

public void writeTo(java.io.DataOutput out)
             throws java.io.IOException

isCachable

public boolean isCachable()