public class SettableValue extends Object
OutboundRow| Modifier and Type | Method and Description |
|---|---|
static SettableValue |
empty(Class<?> type)
Creates a new empty
SettableValue for type. |
boolean |
equals(Object o) |
static SettableValue |
from(Object value)
Creates a new
SettableValue from value. |
static SettableValue |
fromOrEmpty(Object value,
Class<?> type)
|
Class<?> |
getType()
Returns the column value type.
|
Object |
getValue()
Returns the column value.
|
int |
hashCode() |
boolean |
hasValue()
Returns whether this
SettableValue has a value. |
boolean |
isEmpty()
Returns whether this
SettableValue has a empty. |
String |
toString() |
public static SettableValue from(Object value)
SettableValue from value.value - must not be null.SettableValue value for value.public static SettableValue fromOrEmpty(@Nullable Object value, Class<?> type)
value - can be null.type - must not be null.SettableValue value for value.public static SettableValue empty(Class<?> type)
SettableValue for type.SettableValue value for type.@Nullable public Object getValue()
hasValue()public Class<?> getType()
value is null.public boolean hasValue()
SettableValue has a value.SettableValue has a value. false if getValue() is null.public boolean isEmpty()
SettableValue has a empty.SettableValue is empty. true if getValue() is null.Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.