com.bigdata.util
Class NV

java.lang.Object
  extended by 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

Constructor Summary
NV(String name, String value)
           
 
Method Summary
 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(NV o)
           
 String getName()
           
 String getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NV

public NV(String name,
          String value)
Throws:
IllegalArgumentException - if the name is null.
Method Detail

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.