public class NV extends Object implements Serializable, Comparable<NV>
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
asMap(NV... a)
Wrap an array name/value pairs as a
Map . |
static Map<String,Object> |
asMap(Object... nameValuePairs)
Wrap name/value pairs as a map.
|
static Map<String,Object> |
asMap(String name,
Object val)
Wrap a single name and value as a map.
|
int |
compareTo(NV o)
Places into order by
name . |
static NV[] |
concat(NV[] a,
NV[] b)
Combines the two arrays, appending the contents of the 2nd array to the
contents of the first array.
|
boolean |
equals(Object o) |
String |
getName() |
Object |
getValue() |
int |
hashCode() |
String |
toString() |
public NV(String name, Object value)
IllegalArgumentException
- if the name is null
.public String getName()
public Object getValue()
public int compareTo(NV o)
name
.compareTo
in interface Comparable<NV>
public static NV[] concat(NV[] a, NV[] b)
a
- b
- public static Map<String,Object> asMap(String name, Object val)
name
- The key.val
- The value.public static Map<String,Object> asMap(Object... nameValuePairs)
nameValuePairs
- Pairs each being a string followed by an object, being the
name value pair in the resulting map.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.