E - Type parameter.public abstract class CIMValuedElement<E> extends CIMTypedElement
CIMValuedElement is a base class used by any element that
contains a name, type and value.| Modifier | Constructor and Description |
|---|---|
protected |
CIMValuedElement(String pName,
CIMDataType pType,
E pValue)
Creates a new CIM element with the given name, type and value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object pObj)
Compares this object against the specified object.
|
E |
getValue()
Returns the value for this CIM Element.
|
int |
hashCode()
Returns a hash code value for the CIM valued element.
|
String |
toString()
Returns a
String representation of the CIM Element. |
getDataTypecompareTo, getNameprotected CIMValuedElement(String pName, CIMDataType pType, E pValue)
pName - The string for the name for this element.pType - The data type for this element.pValue - The value for this element. null is a valid
value.public boolean equals(Object pObj)
true if and only if the argument is not null
and is a CIMValuedElement that represents the same name,
type and value as this object.equals in class CIMTypedElementpObj - The object to compare with.true if the objects are the same; false
otherwise.public E getValue()
null is a valid value.public int hashCode()
java.util.Hashtable.hashCode in class CIMTypedElementpublic String toString()
String representation of the CIM Element. This
method is intended to be used only for debugging purposes, and the format
of the returned string may vary between implementations. The returned
string may be empty but may not be null.toString in class CIMTypedElementCopyright © 2005, 2012 IBM Corporation. All Rights Reserved.