Applies the operator to the given value
// See if the value is null
if (pValue == null) {
return PrimitiveObjects.getBoolean (true);
}
// See if the value is a zero-length String
else if ("".equals (pValue)) {
return PrimitiveObjects.getBoolean (true);
}
// See if the value is a zero-length array
else if (pValue.getClass ().isArray () &&
Array.getLength (pValue) == 0) {
return PrimitiveObjects.getBoolean (true);
}
// See if the value is an empty List
else if (pValue instanceof List &&
((List) pValue).isEmpty ()) {
return PrimitiveObjects.getBoolean (true);
}
// See if the value is an empty Map
else if (pValue instanceof Map &&
((Map) pValue).isEmpty ()) {
return PrimitiveObjects.getBoolean (true);
}
// Otherwise, not empty
else {
return PrimitiveObjects.getBoolean (false);
}