Skip navigation links
com.sigmadynamics.util
Class Null
java.lang.Object
com.sigmadynamics.util.Null
-
public final class Null
- extends java.lang.Object
NULL values for built-in Inline Service data types. RTD generated ILS code follows a convention of using distinguished values to represent nulls for primitives. This utility class may be used to test for null. For example:
int id = request.getCustomerId(); if (!Null.isNull(id)) { ... }
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOUBLE
public static final double DOUBLE
-
- See Also:
- Constant Field Values
INTEGER
public static final int INTEGER
-
- See Also:
- Constant Field Values
DATE
public static final long DATE
-
- See Also:
- Constant Field Values
LONG
public static final long LONG
-
- See Also:
- Constant Field Values
STRING
public static final java.lang.String STRING
OBJECT
public static final java.lang.Object OBJECT
INT
public static final int INT
-
- See Also:
- Constant Field Values
BOOLEAN
public static final boolean BOOLEAN
-
- See Also:
- Constant Field Values
isNull
public static boolean isNull(double val)
-
- See Also:
Null.DOUBLE
, Double.NaN
isNull
public static boolean isNull(float val)
-
- See Also:
Float.NaN
isNull
public static boolean isNull(int val)
-
- See Also:
Null.INTEGER
, Integer.MIN_VALUE
isNull
public static boolean isNull(long val)
-
- See Also:
Null.DATE
, Long.MIN_VALUE
isNull
public static boolean isNull(boolean val)
-
- Returns:
- false, never true
isNull
public static boolean isNull(java.lang.Object val)
-
- Returns:
(val == null)
isNull
public static boolean isNull(java.lang.String val)
-
- Returns:
(val == null || val == STRING)
- See Also:
Null.STRING
isAllNull
public static boolean isAllNull(SDStringArray values)
isAllNull
public static boolean isAllNull(SDObjectArray values)
isAllNull
public static boolean isAllNull(SDBooleanArray values)
isAllNull
public static boolean isAllNull(SDIntArray values)
isAllNull
public static boolean isAllNull(SDLongArray values)
isAllNull
public static boolean isAllNull(SDDoubleArray values)
Skip navigation links
Copyright © 2010, Oracle. All rights reserved.