|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.config.AbstractConfiguration.Primitive
Represents the value of an entry with a primitive type. Subclasses of
AbstractConfiguration
that contain primitive entries should
return instances of this class from their getEntryInternal
methods.
Constructor Summary | |
AbstractConfiguration.Primitive(Object value)
Creates an object that represents a primitive value of the type associated with the specified primitive wrapper object. |
Method Summary | |
boolean |
equals(Object obj)
Returns true if the argument is a
Primitive for which the result of calling
getValue is the same as the value for this instance,
otherwise false . |
Class |
getType()
Returns the primitive type of the value associated with this object. |
Object |
getValue()
Returns the primitive value associated with this object, represented as a primitive wrapper instance. |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractConfiguration.Primitive(Object value)
value
- the primitive wrapper object
IllegalArgumentException
- if value
is not an
instance of a primitive wrapper classMethod Detail |
public Object getValue()
public Class getType()
public String toString()
public boolean equals(Object obj)
true
if the argument is a
Primitive
for which the result of calling
getValue
is the same as the value for this instance,
otherwise false
.
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |