public final class Parameter extends Object
Modifier and Type | Method and Description |
---|---|
static Parameter |
empty(Class<?> type)
Create a new empty
Parameter for type . |
boolean |
equals(Object obj) |
static Parameter |
from(Object value)
Create a new
Parameter from value . |
static Parameter |
fromOrEmpty(Object value,
Class<?> type)
|
Class<?> |
getType()
Returns the column value type.
|
Object |
getValue()
Return the column value.
|
int |
hashCode() |
boolean |
hasValue()
Returns whether this
Parameter has a value. |
boolean |
isEmpty()
Returns whether this
Parameter has a empty. |
String |
toString() |
public static Parameter from(Object value)
Parameter
from value
.value
- must not be null
Parameter
value for value
public static Parameter fromOrEmpty(@Nullable Object value, Class<?> type)
value
- can be null
type
- must not be null
Parameter
value for value
public static Parameter empty(Class<?> type)
Parameter
for type
.Parameter
value for type
@Nullable public Object getValue()
null
.hasValue()
public Class<?> getType()
value
is null
.public boolean hasValue()
Parameter
has a value.false
if getValue()
is null
public boolean isEmpty()
Parameter
has a empty.true
if getValue()
is null