com.sun.syndication.feed.module.mediarss.types
Class Time

java.lang.Object
  extended by com.sun.syndication.feed.module.mediarss.types.Time
All Implemented Interfaces:
java.io.Serializable

public class Time
extends java.lang.Object
implements java.io.Serializable

Represents a RFC 2326 3.6 Normal Play Time timestamp.

Author:
cooper
See Also:
Serialized Form

Constructor Summary
Time(long milliseconds)
          Creates a new instance of Time
Time(java.lang.String value)
          Creates a new instance of Time
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time

public Time(long milliseconds)
Creates a new instance of Time

Parameters:
milliseconds - milliseconds in length or offset.

Time

public Time(java.lang.String value)
Creates a new instance of Time

Parameters:
value - RFC 2326 3.6 Normal Play Time value
Method Detail

getValue

public long getValue()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.