Skip navigation links


com.bea.wsrp.ext.holders
Class NamedStringArray.NamedString

java.lang.Object
  extended by com.bea.wsrp.ext.holders.NamedStringArray.NamedString

All Implemented Interfaces
Serializable
Enclosing class:
NamedStringArray

public static class NamedStringArray.NamedString
extends Object
implements Serializable

This class represents a single name/value pair in a NamedStringArray, where the name is a non-null string and value is a nullable string.

See Also
Serialized Form

Constructor Summary
NamedStringArray.NamedString(String name, String value)
          Constructs a new NamedString with the specified name and value.

 

Method Summary
 boolean equals(Object o)
           
 String getName()
          Returns the name of this NamedString, which cannot be null.
 String getValue()
          Returns the value of this NamedString, which can be null.
 int hashCode()
           
 String toString()
           

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

NamedStringArray.NamedString

public NamedStringArray.NamedString(String name,
                                    String value)
Constructs a new NamedString with the specified name and value.
Parameters
name - the name of this NamedString, which cannot be null.
value - the value of this NamedString, which may be null.
Throws
IllegalArgumentException - if name is null.

Method Detail

getName

public String getName()
Returns the name of this NamedString, which cannot be null.

getValue

public String getValue()
Returns the value of this NamedString, which can be null.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.