public class Static extends Base
NULL_SER_STRING, VERSION
Constructor and Description |
---|
Static(byte[] ab)
De-serialization of StaticHoliday from byte stream
|
Static(JulianDate dt,
java.lang.String strDescription)
Construct a static holiday from the date and the description
|
Modifier and Type | Method and Description |
---|---|
static Static |
CreateFromDateDescription(java.lang.String strDate,
java.lang.String strDescription)
Create a static holiday from the date string and the description
|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
double |
getDateInYear(int iYear,
boolean bAdjusted)
Generate the full date specific to the input year
|
java.lang.String |
getFieldDelimiter()
Returns the Field Delimiter String
|
java.lang.String |
getObjectTrailer()
Returns the Object Trailer String
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
getDescription, rollHoliday
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter
public Static(JulianDate dt, java.lang.String strDescription) throws java.lang.Exception
dt
- DatestrDescription
- Descriptionjava.lang.Exception
- Thrown if the Inputs are invalidpublic Static(byte[] ab) throws java.lang.Exception
ab
- Byte streamjava.lang.Exception
- Thrown if cannot properly de-serialize StaticHolidaypublic static final Static CreateFromDateDescription(java.lang.String strDate, java.lang.String strDescription)
strDate
- Date stringstrDescription
- Descriptionpublic double getDateInYear(int iYear, boolean bAdjusted)
Base
getDateInYear
in class Base
iYear
- Input YearbAdjusted
- Whether adjustment is desiredpublic java.lang.String getFieldDelimiter()
Serializer
getFieldDelimiter
in class Serializer
public java.lang.String getObjectTrailer()
Serializer
getObjectTrailer
in class Serializer
public byte[] serialize()
Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception