-
- Type Parameters:
O
- the type of Java object
- All Superinterfaces:
ObjectTyped<O>
,ScalarTyped
,ScalarValued
,TokenTyped
,TokenValued
- All Known Subinterfaces:
ObjectInputField<T>
,ObjectValuedIterator<T>
- All Known Implementing Classes:
ObjectRegister
,ObjectToken
public interface ObjectValued<O> extends ScalarValued, ObjectTyped<O>
ATokenValued
object containing a Java object.- See Also:
TokenTypeConstant#OBJECT(Class)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description O
asObject()
Gets the contained Java object.ObjectTokenType<O>
getType()
Gets the data type of the token.-
Methods inherited from interface com.pervasive.datarush.tokens.scalar.ScalarValued
isZero
-
Methods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
-
-
-
Method Detail
-
getType
ObjectTokenType<O> getType()
Description copied from interface:TokenValued
Gets the data type of the token. This type will dictate the valid values that can be contained.- Specified by:
getType
in interfaceObjectTyped<O>
- Specified by:
getType
in interfaceScalarTyped
- Specified by:
getType
in interfaceScalarValued
- Specified by:
getType
in interfaceTokenTyped
- Specified by:
getType
in interfaceTokenValued
- Returns:
- the token type.
-
asObject
O asObject()
Gets the contained Java object.- Returns:
- the contained value. If null valued, as indicated by
TokenValued.isNull()
,null
is returned.
-
-