Package adalid.commons.util
Class ObjUtils
java.lang.Object
adalid.commons.util.ObjUtils
- Author:
- Jorge Campins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Datestatic Datestatic DateaddMinutes(Object x, Object y) static Datestatic DateaddSeconds(Object x, Object y) static Datestatic Datestatic Booleanstatic BigDecimalstatic booleanstatic Stringcapitalize(Object o) static <T> Tcoalesce(T... objects) static <X> XcoalesceX(X... objects) static Integerstatic Stringstatic Stringconcatenate(Object... objects) static Booleanstatic Longstatic Booleanstatic Booleanstatic booleanstatic Booleanstatic Booleanstatic booleanstatic Booleanstatic Booleanstatic Booleanstatic BooleanisNullOrContains(Object x, Object y) static BooleanisNullOrEndsWith(Object x, Object y) static BooleanisNullOrEq(Object x, Object y) static Booleanstatic BooleanisNullOrGt(Object x, Object y) static BooleanisNullOrGteq(Object x, Object y) static BooleanisNullOrLt(Object x, Object y) static BooleanisNullOrLteq(Object x, Object y) static BooleanisNullOrNeq(Object x, Object y) static BooleanisNullOrNotContains(Object x, Object y) static BooleanisNullOrNotEndsWith(Object x, Object y) static Booleanstatic BooleanisNullOrStartsWith(Object x, Object y) static Booleanstatic Booleanstatic Stringstatic Booleanstatic Booleanstatic Stringstatic <T> Tmaximum(T... objects) static <T> Tminimum(T... objects) static Numberstatic Booleanstatic Booleanstatic Booleanstatic Booleanstatic Booleanstatic BooleannorOrNaxor(Object... objects) static Booleanstatic BooleannotContains(Object x, Object y) static BooleannotEndsWith(Object x, Object y) static BooleannotStartsWith(Object x, Object y) static <T> Tnullif(T x, T y) static Numberstatic Booleanstatic BigDecimalstatic BigDecimalreciprocal(Object o) static Stringstatic BooleanstartsWith(Object x, Object y) static BigDecimalstatic BigDecimalstatic BigIntegerstatic Booleanstatic Bytestatic Characterstatic Datestatic Doublestatic Floatstatic Integerstatic Longstatic Shortstatic Stringstatic Timestatic Timestampstatic Stringstatic Stringstatic Stringstatic BigDecimalxDividedIntoY(Object x, Object y) static Booleanstatic BigDecimalstatic BigDecimalxMultipliedByY(Object x, Object y) static Booleanstatic Booleanstatic BigDecimalstatic BigDecimalxRaisedToTheY(Object x, Object y)
-
Constructor Details
-
ObjUtils
public ObjUtils()
-
-
Method Details
-
equals
-
toBoolean
-
toCharacter
-
toString
-
toByte
-
toShort
-
toInteger
-
toLong
-
toFloat
-
toDouble
-
toBigInteger
-
toBigDecimal
-
toDate
-
toTime
-
toTimestamp
-
isBlank
-
isNull
-
isNotNull
-
isTrue
-
isFalse
-
eq
-
neq
-
gt
-
gteq
-
lt
-
lteq
-
compare
-
between
-
startsWith
-
notStartsWith
-
contains
-
notContains
-
endsWith
-
notEndsWith
-
isNullOrTrue
-
isNullOrFalse
-
isNullOrEq
-
isNullOrNeq
-
isNullOrGt
-
isNullOrGteq
-
isNullOrLt
-
isNullOrLteq
-
isNullOrStartsWith
-
isNullOrNotStartsWith
-
isNullOrContains
-
isNullOrNotContains
-
isNullOrEndsWith
-
isNullOrNotEndsWith
-
coalesce
public static <T> T coalesce(T... objects) -
count
-
maximum
public static <T> T maximum(T... objects) -
minimum
public static <T> T minimum(T... objects) -
and
-
nand
-
or
-
nor
-
naxor
-
naxnor
-
norOrNaxor
-
concat
-
concatenate
-
sum
-
product
-
average
-
nullif
public static <T> T nullif(T x, T y) -
xor
-
xnor
-
xImpliesY
-
xPlusY
-
xMinusY
-
xMultipliedByY
-
xDividedIntoY
-
xRaisedToTheY
-
addYears
-
addMonths
-
addWeeks
-
addDays
-
addHours
-
addMinutes
-
addSeconds
-
not
-
lower
-
upper
-
capitalize
-
uncapitalize
-
trim
-
ltrim
-
rtrim
-
modulus
-
opposite
-
reciprocal
-
coalesceX
public static <X> X coalesceX(X... objects)
-