com.gcapmedia.dab.epg.binary
Class DurationType
java.lang.Object
com.gcapmedia.dab.epg.binary.DurationType
- All Implemented Interfaces:
- Encodable
public class DurationType
- extends java.lang.Object
- implements Encodable
Constructor Summary |
DurationType(org.joda.time.Duration duration)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DurationType
public DurationType(org.joda.time.Duration duration)
- Parameters:
duration
-
fromBytes
public static DurationType fromBytes(byte[] bytes)
- Returns a type from its byte array representation
- Parameters:
bytes
-
- Returns:
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interface Encodable
- Returns:
- Returns the data as bytes
- See Also:
Encodable.getBytes()
getLength
public int getLength()
- Specified by:
getLength
in interface Encodable
- Returns:
- Returns the length of this data
- See Also:
Encodable.getLength()
getDuration
public org.joda.time.Duration getDuration()
- Returns:
- Returns the duration
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2007. All Rights Reserved.