com.bigdata.util
Class NV
java.lang.Object
com.bigdata.util.NV
- All Implemented Interfaces:
- Serializable, Comparable<NV>
public class NV
- extends Object
- implements Serializable, Comparable<NV>
A name-value pair.
- Version:
- $Id: NV.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
- See Also:
- Serialized Form
NV
public NV(String name,
String value)
- Throws:
IllegalArgumentException - if the name is null.
getName
public String getName()
getValue
public String getValue()
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(NV o)
compareTo
public int compareTo(NV o)
- Places into order by
name.
- Specified by:
compareTo in interface Comparable<NV>
concat
public 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.
- Parameters:
a - b -
- Returns:
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.