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()
Return the column value type.
|
Object |
getValue()
Return the column value (can be
null ). |
int |
hashCode() |
boolean |
hasValue()
Return whether this
Parameter has a value. |
boolean |
isEmpty()
Return whether this
Parameter has a empty. |
String |
toString() |
public static Parameter from(Object value)
Parameter
from value
.value
- the parameter valueParameter
value for value
public static Parameter fromOrEmpty(@Nullable Object value, Class<?> type)
value
- the parameter value (can be null
)type
- the parameter typeParameter
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