public final class IntegerUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Integer |
assign(Integer value,
Integer defaultValueIfNull)
Return the value unless it is null, in which case it returns the default value.
|
static boolean |
isNotSameValue(Integer val1,
Integer val2) |
static boolean |
isNotZero(Integer value) |
static boolean |
isNotZeroOrNegative(Integer id) |
static boolean |
isNullOrZero(Integer value) |
static boolean |
isSameValue(Integer val1,
Integer val2) |
static boolean |
isZero(Integer value) |
static Integer |
safeAdd(Integer v1,
Integer v2)
Add 2 BigDecimal safely (i.e.
|
static int |
safeCompare(Integer id,
Integer id2) |
static int |
safeSignum(Integer v) |
public static boolean isNotZero(Integer value)
public static boolean isZero(Integer value)
public static boolean isNullOrZero(Integer value)
public static boolean isSameValue(Integer val1, Integer val2)
public static boolean isNotSameValue(Integer val1, Integer val2)
public static Integer safeAdd(Integer v1, Integer v2)
public static int safeSignum(Integer v)
public static Integer assign(Integer value, Integer defaultValueIfNull)
value
- defaultValueIfNull
- public static boolean isNotZeroOrNegative(Integer id)
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.