Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Checks two MonitoringLevel objects for equality.
Checks that obj is a MonitoringLevel, and has the same name as
this object.
if (obj == this)
return true;
if (! (obj instanceof MonitoringLevel))
return false;
MonitoringLevel that = (MonitoringLevel) obj;
return (this.name.equals(that.name));
|
public int | hashCode()Returns the hash code value for this object.
The hash code returned is the hash code of the name of this
MonitoringLevel object.
return this.name.hashCode();
|
public static com.sun.enterprise.admin.monitor.registry.MonitoringLevel | instance(java.lang.String name)Returns an instance of MonitoringLevel for the given String.
The given String has to correspond to one of the public fields declared
in this class.
if (OFF.toString().equalsIgnoreCase(name))
return ( OFF );
else if (LOW.toString().equalsIgnoreCase(name))
return ( LOW );
else if (HIGH.toString().equalsIgnoreCase(name))
return ( HIGH );
return ( null );
|
public java.lang.String | toString()
return ( name );
|