public class WMOHeader
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable
Constructor and Description |
---|
WMOHeader(ByteString.Concrete src,
ByteString.TrSubString TTAA,
byte ii,
ByteString.SubString CCCC,
Timestamp ts)
Create a new WMOHeader
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object oo)
Compare to another object
|
int |
compareTo(WMOHeader hdr)
Imposes a "natural order" on WMOHeaders.
|
ByteString |
getCallSign()
Returns the "international four letter location indicator
of the station originating or compiling the bulletin" (CCCC).
|
ByteString |
getText()
Get the header
|
Timestamp |
getTimestamp()
Get the timestamp
|
java.lang.String |
toString()
Return a String representation of this WMOHeader
|
public WMOHeader(ByteString.Concrete src, ByteString.TrSubString TTAA, byte ii, ByteString.SubString CCCC, Timestamp ts)
src
- source of the HeaderTTAA
- TTAA portionii
- II portionCCCC
- CCCC portionts
- timestamppublic Timestamp getTimestamp()
public ByteString getText()
public ByteString getCallSign()
public int compareTo(WMOHeader hdr)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
hdr
- the Object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this Object.Comparable
public int compareTo(java.lang.Object oo)
compareTo
in interface java.lang.Comparable
oo
- Object to comparepublic java.lang.String toString()
toString
in class java.lang.Object