Top Description Fields Constructors Methods
org.yaml.snakeyaml.nodes

public final Class NodeTuple

extends Object
Class Inheritance

Stores one key value pair used in a map.

Field Summary

Modifier and TypeField and Description
private final Node
private final Node

Constructor Summary

AccessConstructor and Description
public
NodeTuple(Node keyNode, Node valueNode)

Method Summary

Modifier and TypeMethod and Description
public Node

Returns:

the node used as key
getKeyNode
()

Key node.

public Node

Returns:

node used as value
getValueNode
()

Value node.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

keyNodeback to summary
private final Node keyNode
valueNodeback to summary
private final Node valueNode

Constructor Detail

NodeTupleback to summary
public NodeTuple(Node keyNode, Node valueNode)

Method Detail

getKeyNodeback to summary
public Node getKeyNode()

Key node.

Returns:Node

the node used as key

getValueNodeback to summary
public Node getValueNode()

Value node.

Returns:Node

node used as value

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override