public abstract class NullableShort
extends java.lang.Object
Functions for the implementation of nullable short
.
Constructor and Description |
---|
NullableShort() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equal(java.lang.Short left,
java.lang.Short right)
Return
true if left == right , otherwise false . |
static short |
getValue(java.lang.Short value)
Return non-
null value. |
static boolean |
hasValue(java.lang.Short left,
short right)
Return
true if left == right , otherwise false . |
static boolean |
isNull(java.lang.Short value)
Return
true if value is null , otherwise false . |
static boolean |
notEqual(java.lang.Short left,
java.lang.Short right)
Return
true if left != right , otherwise false . |
static boolean |
notNull(java.lang.Short value)
Return
true if value is not null , otherwise false . |
static java.lang.Short |
nullValue()
Return (nullable) The
null short value. |
static java.lang.String |
toString(java.lang.Short value)
Return "null" if
value is null , otherwise value.toString() . |
static java.lang.Short |
withValue(short value)
Return (nullable)
value , converted to a nullable short . |
public static boolean equal(java.lang.Short left, java.lang.Short right)
Return true
if left == right
, otherwise false
.
left
- (nullable) Left operand.right
- (nullable) Right operand.true
if left == right
, otherwise false
.public static short getValue(java.lang.Short value)
Return non-null
value.
NullValueException
if value
is null
.
value
- (nullable) Nullable value.public static boolean hasValue(java.lang.Short left, short right)
Return true
if left == right
, otherwise false
.
left
- (nullable) Left operand.right
- Right operand.true
if left == right
, otherwise false
.public static boolean isNull(java.lang.Short value)
Return true
if value
is null
, otherwise false
.
value
- (nullable) Argument value.true
if value
is null
, otherwise false
.public static boolean notEqual(java.lang.Short left, java.lang.Short right)
Return true
if left != right
, otherwise false
.
left
- (nullable) Left operand.right
- (nullable) Right operand.true
if left != right
, otherwise false
.public static boolean notNull(java.lang.Short value)
Return true
if value
is not null
, otherwise false
.
value
- (nullable) Argument value.true
if value
is not null
, otherwise false
.public static java.lang.Short nullValue()
Return (nullable) The null
short
value.
null
short
value.public static java.lang.String toString(java.lang.Short value)
Return "null" if value
is null
, otherwise value.toString()
.
value
- (nullable) Argument value.value
is null
, otherwise value.toString()
.public static java.lang.Short withValue(short value)
Return (nullable) value
, converted to a nullable short
.
value
- Argument value.value
, converted to a nullable short
.