public interface YamlScalar extends YamlNode
UNNAMED_NODE
Modifier and Type | Method and Description |
---|---|
<T> boolean |
isA(Class<T> type)
Checks if the value of this node is the given type
|
<T> T |
nodeValue()
Gets the value of the node
Please note that if the scalar's type is not the expected type T,
a
ClassCastException is thrown at the call site. |
<T> T |
nodeValue(Class<T> type)
Gets the value of the node with validating its type against the
provided type
|
<T> boolean isA(Class<T> type)
T
- the type to checktype
- the Class
instance of the type to check<T> T nodeValue()
ClassCastException
is thrown at the call site.T
- the expected type of the node<T> T nodeValue(Class<T> type)
T
- the expected type of the nodeYamlException
- if the scalar's value is not a type of TCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.