Package com.yandex.ydb.table.values
Class OptionalValue
- java.lang.Object
-
- com.yandex.ydb.table.values.OptionalValue
-
- All Implemented Interfaces:
Value<OptionalType>
@ParametersAreNonnullByDefault public class OptionalValue extends Object implements Value<OptionalType>
- Author:
- Sergey Polovko
-
-
Field Summary
-
Fields inherited from interface com.yandex.ydb.table.values.Value
EMPTY_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Valueget()OptionalTypegetType()inthashCode()booleanisPresent()static OptionalValueof(Value value)ValueorElse(Value other)com.yandex.ydb.ValueProtos.ValuetoPb()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.yandex.ydb.table.values.Value
asData, asDict, asList, asOptional, asStuct, asVariant, asVoid, makeOptional
-
-
-
-
Method Detail
-
of
public static OptionalValue of(Value value)
-
isPresent
public boolean isPresent()
-
get
public Value get()
-
getType
public OptionalType getType()
- Specified by:
getTypein interfaceValue<OptionalType>
-
toPb
public com.yandex.ydb.ValueProtos.Value toPb()
- Specified by:
toPbin interfaceValue<OptionalType>
-
-