public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
applyDifference(ScalarValue baseValue,
TwinValue diffValue) |
static String |
collectionToString(Collection set) |
static String |
collectionToString(Collection set,
String sep) |
static ComposedScalar |
composedDecimal(QName name,
Operator exponentOp,
ScalarValue exponentVal,
Operator mantissaOp,
ScalarValue mantissaVal,
boolean optional) |
static Node |
createLength(QName name,
String id) |
static Date |
date(int year,
int month,
int day) |
static int |
dateToInt(Date date) |
static ScalarValue |
getDifference(byte[] newValue,
byte[] priorValue) |
static boolean |
isBiggerThanInt(long value) |
static int |
millisecondsSinceMidnight(Date date) |
static int |
timestampToInt(Date date) |
static int |
timeToInt(Date date) |
static int |
toInt(String attribute) |
static Date |
toTimestamp(long value) |
public static boolean isBiggerThanInt(long value)
public static ScalarValue getDifference(byte[] newValue, byte[] priorValue)
public static byte[] applyDifference(ScalarValue baseValue, TwinValue diffValue)
public static String collectionToString(Collection set)
public static String collectionToString(Collection set, String sep)
public static int millisecondsSinceMidnight(Date date)
public static Date date(int year, int month, int day)
year
- the year yyyymonth
- 1-based index of monthday
- day of monthpublic static int dateToInt(Date date)
public static int timeToInt(Date date)
public static int timestampToInt(Date date)
public static Date toTimestamp(long value)
public static ComposedScalar composedDecimal(QName name, Operator exponentOp, ScalarValue exponentVal, Operator mantissaOp, ScalarValue mantissaVal, boolean optional)
public static int toInt(String attribute)
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.