FixedDateTimeZone.java 2.06 KB
package org.joda.time.tz;

import java.util.SimpleTimeZone;
import java.util.TimeZone;
import org.joda.time.DateTimeZone;

public final class FixedDateTimeZone
  extends DateTimeZone
{
  private static final long serialVersionUID = -3513011772763289092L;
  private final String a;
  private final int b;
  private final int c;
  
  public FixedDateTimeZone(String paramString1, String paramString2, int paramInt1, int paramInt2)
  {
    super(paramString1);
    this.a = paramString2;
    this.b = paramInt1;
    this.c = paramInt2;
  }
  
  public final boolean equals(Object paramObject)
  {
    if (this == paramObject) {}
    do
    {
      return true;
      if (!(paramObject instanceof FixedDateTimeZone)) {
        break;
      }
      paramObject = (FixedDateTimeZone)paramObject;
    } while ((getID().equals(((FixedDateTimeZone)paramObject).getID())) && (this.c == ((FixedDateTimeZone)paramObject).c) && (this.b == ((FixedDateTimeZone)paramObject).b));
    return false;
    return false;
  }
  
  public final String getNameKey(long paramLong)
  {
    return this.a;
  }
  
  public final int getOffset(long paramLong)
  {
    return this.b;
  }
  
  public final int getOffsetFromLocal(long paramLong)
  {
    return this.b;
  }
  
  public final int getStandardOffset(long paramLong)
  {
    return this.c;
  }
  
  public final int hashCode()
  {
    return getID().hashCode() + this.c * 37 + this.b * 31;
  }
  
  public final boolean isFixed()
  {
    return true;
  }
  
  public final long nextTransition(long paramLong)
  {
    return paramLong;
  }
  
  public final long previousTransition(long paramLong)
  {
    return paramLong;
  }
  
  public final TimeZone toTimeZone()
  {
    String str = getID();
    if ((str.length() == 6) && ((str.startsWith("+")) || (str.startsWith("-")))) {
      return TimeZone.getTimeZone("GMT" + getID());
    }
    return new SimpleTimeZone(this.b, getID());
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/org/joda/time/tz/FixedDateTimeZone.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */