public final class PortableProperties
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PortableProperties()
Constructs a PortableProperties with an empty java.util.HashMap
|
PortableProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Constructs a PortableProperties with the specified map, if the specified map is null, a java.util.HashMap is to be created.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static PortableProperties |
from(javax.management.openmbean.CompositeData cd)
Create an instance of the model specific class out of an associated CompositeData instance
|
static PortableProperties |
from(javax.management.openmbean.CompositeData cd, java.util.Map<java.lang.String,java.lang.String> properties)
Create an instance of the model specific class out of an associated CompositeData instance
|
java.lang.String |
get(java.lang.String propID) |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
int |
hashCode() |
boolean |
isEmpty() |
java.lang.String |
put(java.lang.String propID, java.lang.String propValue) |
java.lang.String |
remove(java.lang.String propID) |
int |
size() |
javax.management.openmbean.CompositeData |
toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData.
|
static javax.management.openmbean.CompositeType |
toCompositeType()
Returns the CompositeType that describes this model specific class
|
java.lang.String |
toString() |
public PortableProperties()
@ConstructorProperties(value="properties") public PortableProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- - the properties mappublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public java.lang.String get(java.lang.String propID)
public java.lang.String put(java.lang.String propID, java.lang.String propValue)
public java.lang.String remove(java.lang.String propID)
public int size()
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static javax.management.openmbean.CompositeType toCompositeType()
public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
ct
- - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.public static PortableProperties from(javax.management.openmbean.CompositeData cd)
public static PortableProperties from(javax.management.openmbean.CompositeData cd, java.util.Map<java.lang.String,java.lang.String> properties)
properties
- - the map for storing properties