ImmutableDescriptor (Java SE 16 & JDK 16) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io"), [Cloneable](../../../java.base/java/lang/Cloneable.html "interface in java.lang"), [Descriptor](Descriptor.html "interface in javax.management")


public class ImmutableDescriptor extends Objectimplements Descriptor

An immutable descriptor.

Since:

1.6

See Also:

Serialized Form

Fields

Constructors
Construct a descriptor containing the given fields.
Construct a descriptor containing the given fields and values.
Construct a descriptor where the names and values of the fields are the keys and values of the given Map.

[clone](#clone%28%29)()
Returns a descriptor which is equal to this descriptor.
boolean
Compares this descriptor to the given object.
Returns all the field names in the descriptor.
[getFields](#getFields%28%29)()
Returns all of the fields contained in this descriptor as a string array.
Returns the value for a specific field name, or null if no value is present for that name.
Returns all the field values in the descriptor as an array of Objects.
int
[hashCode](#hashCode%28%29)()
Returns the hash code value for this descriptor.
boolean
[isValid](#isValid%28%29)()
Returns true if all of the fields have legal values given their names.
void
Removes a field from the descriptor.
void
This operation is unsupported since this class is immutable.
void
This operation is unsupported since this class is immutable.
Return an ImmutableDescriptor whose contents are the union of the given descriptors.