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 |
isBetween(Object value,
Object fromValue,
Object toValue,
int deciPlaces) |
static boolean |
isBetweenOrEqual(Object value,
Object fromValue,
Object toValue) |
static boolean |
isBetweenOrEqual(Object value,
Object fromValue,
Object toValue,
int deciPlaces) |
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 |
isEqualOrBetween(Object value,
Object fromValue,
Object toValue,
int deciPlaces) |
static boolean |
isEqualOrGreater(Object value,
Object fromValue) |
static boolean |
isEqualOrGreater(Object value,
Object fromValue,
int deciPlaces) |
static boolean |
isEqualOrIn(Object obj,
Object matchValue) |
static boolean |
isEqualOrLess(Object value,
Object fromValue) |
static boolean |
isEqualOrLess(Object value,
Object fromValue,
int deciPlaces) |
static boolean |
isGreater(Object value,
Object fromValue) |
static boolean |
isGreater(Object value,
Object fromValue,
int deciPlaces) |
static boolean |
isGreaterOrEqual(Object value,
Object fromValue) |
static boolean |
isGreaterOrEqual(Object value,
Object fromValue,
int deciPlaces) |
static boolean |
isIn(Object obj,
Object matchValue) |
static boolean |
isLess(Object value,
Object fromValue) |
static boolean |
isLess(Object value,
Object fromValue,
int deciPlaces) |
static boolean |
isLessOrEqual(Object value,
Object fromValue) |
static boolean |
isLessOrEqual(Object value,
Object fromValue,
int deciPlaces) |
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 boolean |
isNotEqual(Object value,
Object matchValue,
boolean bIgnoreCase) |
static boolean |
isNotEqual(Object value,
Object matchValue,
boolean bIgnoreCase,
int decimalPlaces) |
static void |
main(String[] args) |
public static boolean isLike(Object value, Object matchValue)
matchValue
- if a String, then it can begin and/or end with '*'|'%', (or inside the string) as a wildcard.public static boolean isNotEqual(Object value, Object matchValue, boolean bIgnoreCase, int decimalPlaces)
public static boolean isEqual(Object value, Object matchValue, boolean bIgnoreCase, int decimalPlaces)
public static boolean isBetween(Object value, Object fromValue, Object toValue, int deciPlaces)
public static boolean isEqualOrBetween(Object value, Object fromValue, Object toValue)
public static boolean isEqualOrBetween(Object value, Object fromValue, Object toValue, int deciPlaces)
public static boolean isBetweenOrEqual(Object value, Object fromValue, Object toValue)
public static boolean isBetweenOrEqual(Object value, Object fromValue, Object toValue, int deciPlaces)
public static boolean isEqualOrGreater(Object value, Object fromValue, int deciPlaces)
public static boolean isGreaterOrEqual(Object value, Object fromValue, int deciPlaces)
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–2025 ViaOA. All rights reserved.