|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teraspaces.qwframework.FIXTypeConverter
public class FIXTypeConverter
Helper functions used by QWFIX internally.
| Constructor Summary | |
|---|---|
FIXTypeConverter()
|
|
| Method Summary | |
|---|---|
static String |
dateToString(DateTime value)
Converts a date to string. |
static String |
floatToString(double value)
Converts a float number to string. |
static DateTime |
parseDate(String value,
DateTimeKind kind)
Parses the date from a string. |
static TimeSpan |
parseTime(String value)
Parses the time from a string. |
static DateTime |
parseTimestamp(String value,
DateTimeKind kind)
Parses the time stamp from a string. |
static String |
timestampToString(DateTime value,
boolean hasMilli)
Converts a time stamp to string. |
static String |
timeToString(TimeSpan value,
boolean hasMilli)
Converts a time value to string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIXTypeConverter()
| Method Detail |
|---|
public static String floatToString(double value)
value - the value
public static String timestampToString(DateTime value,
boolean hasMilli)
value - the valuehasMilli - a value indicating whether millisecond value is included
public static String dateToString(DateTime value)
value - the value
public static String timeToString(TimeSpan value,
boolean hasMilli)
value - the valuehasMilli - a value indicating whether millisecond value is included
public static DateTime parseTimestamp(String value,
DateTimeKind kind)
value - the valuekind - the kind
public static DateTime parseDate(String value,
DateTimeKind kind)
value - the valuekind - the kind
public static TimeSpan parseTime(String value)
value - the value
|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||