net.fortuna.ical4j.model
Class UtcOffset

java.lang.Object
  extended by net.fortuna.ical4j.model.UtcOffset
All Implemented Interfaces:
Serializable

public class UtcOffset
extends Object
implements Serializable

$Id$ Created on 26/06/2005 Represents a timezone offset from UTC time.

Author:
Ben Fortuna
See Also:
Serialized Form

Constructor Summary
UtcOffset(long offset)
           
UtcOffset(String value)
           
 
Method Summary
 boolean equals(Object arg0)
          
 long getOffset()
           
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UtcOffset

public UtcOffset(String value)
Parameters:
value - a string representation of an offset

UtcOffset

public UtcOffset(long offset)
Parameters:
offset - an offset value in milliseconds
Method Detail

toString

public final String toString()

Overrides:
toString in class Object

getOffset

public final long getOffset()
Returns:
Returns the offset.

equals

public final boolean equals(Object arg0)

Overrides:
equals in class Object

hashCode

public final int hashCode()

Overrides:
hashCode in class Object


Copyright © 2004-2012 Micronode. All Rights Reserved.