Package org.apache.vinci.transport
Class KeyValuePair
- java.lang.Object
-
- org.apache.vinci.transport.KeyValuePair
-
public final class KeyValuePair extends Object
Object for storing each key/value within a frame. Also returned by the simple Frame positional accessor method "getKeyValuePair(int)". KeyValuePair can be considered immutable unless you use any of the VinciFrame.fset(*) methods, which may modify the value component. Generally you shouldn't have to work with KeyValuePair objects since the recommended approach to accessing Frame contents is through declarative as opposed to positional accessors.
-
-
Constructor Summary
Constructors Constructor Description KeyValuePair(String mykey, FrameComponent myvalue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
FrameComponent
getValue()
Frame
getValueAsFrame()
FrameLeaf
getValueAsLeaf()
String
getValueAsString()
boolean
isValueALeaf()
-
-
-
Constructor Detail
-
KeyValuePair
public KeyValuePair(String mykey, FrameComponent myvalue)
- Parameters:
mykey
- -myvalue
- -
-
-
Method Detail
-
getValue
public FrameComponent getValue()
-
getKey
public String getKey()
-
isValueALeaf
public boolean isValueALeaf()
-
getValueAsLeaf
public FrameLeaf getValueAsLeaf()
- Returns:
- -
-
getValueAsString
public String getValueAsString()
-
getValueAsFrame
public Frame getValueAsFrame()
- Returns:
- -
-
-