public class OACompare extends Object
Constructor and Description |
---|
OACompare() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(int a,
int b) |
static int |
compare(Object value,
Object matchValue) |
static int |
compare(Object value,
Object matchValue,
int decimalPlaces)
Compare objects, converting them (using OAConverter class) if necessary.
|
static boolean |
isBetween(Object value,
Object fromValue,
Object toValue) |
static boolean |
isBetweenOrEqual(Object value,
Object fromValue,
Object toValue) |
static boolean |
isEmpty(Object obj) |
static boolean |
isEmpty(Object obj,
boolean bTrim)
Checks to see if the value of an object can be considered empty.
|
static boolean |
isEqual(Object value,
Object matchValue) |
static boolean |
isEqual(Object value,
Object matchValue,
boolean bIgnoreCase) |
static boolean |
isEqual(Object value,
Object matchValue,
boolean bIgnoreCase,
int decimalPlaces) |
static boolean |
isEqual(Object value,
Object matchValue,
int decimalPlaces) |
static boolean |
isEqualIgnoreCase(Object value,
Object matchValue) |
static boolean |
isEqualOrBetween(Object value,
Object fromValue,
Object toValue) |
static boolean |
isEqualOrGreater(Object value,
Object fromValue) |
static boolean |
isEqualOrIn(Object obj,
Object matchValue) |
static boolean |
isEqualOrLess(Object value,
Object fromValue) |
static boolean |
isGreater(Object value,
Object fromValue) |
static boolean |
isGreaterOrEqual(Object value,
Object fromValue) |
static boolean |
isIn(Object obj,
Object matchValue) |
static boolean |
isLess(Object value,
Object fromValue) |
static boolean |
isLessOrEqual(Object value,
Object fromValue) |
static boolean |
isLike(Object value,
Object matchValue) |
static boolean |
isNotEmpty(Object obj) |
static boolean |
isNotEmpty(Object obj,
boolean bTrim) |
static boolean |
isNotEqual(Object value,
Object matchValue) |
static void |
main(String[] args) |
public static boolean isLike(Object value, Object matchValue)
matchValue
- if a String, then it can begin or end with '*'|'%' as a wildcard.public static boolean isEqual(Object value, Object matchValue, boolean bIgnoreCase, int decimalPlaces)
public static boolean isEqualOrBetween(Object value, Object fromValue, Object toValue)
public static boolean isBetweenOrEqual(Object value, Object fromValue, Object toValue)
public static int compare(int a, int b)
public static int compare(Object value, Object matchValue, int decimalPlaces)
public static boolean isNotEmpty(Object obj)
public static boolean isNotEmpty(Object obj, boolean bTrim)
public static boolean isEmpty(Object obj)
public static boolean isEmpty(Object obj, boolean bTrim)
obj
- bTrim
- if true and object is a string, then spaces will be ignored.public static void main(String[] args)
Copyright © 1999–2019 ViaOA. All rights reserved.