APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvmstat.monitor

public Class Variability

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Provides a typesafe enumeration for the Variability attribute for instrumentation objects.
Author
Brian Doherty

Field Summary

Modifier and TypeField and Description
public static final Variability
CONSTANT

Variability attribute representing Constant counters.

public static final Variability
INVALID

An invalid Variablity value.

private static Variability[]
public static final Variability
MONOTONIC

Variability attribute representing a Monotonically changing counters.

private String
private static final int
private static final long
private int
public static final Variability
VARIABLE

Variability attribute representing Variable counters.

Constructor Summary

AccessConstructor and Description
private
Variability(String name, int value)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

int - an integer representation of this Variability attribute.
intValue
()

Returns the integer representation of this Variability attribute.

public String

Returns:

String - a descriptive string for this enum.
toString
()

Overrides java.lang.Object.toString.

Returns a string describing this Variability attribute.

public static Variability

Returns:

Variability - The Variability object for the given value or Variability#INVALID if out of range.
toVariability
(int
an integer representation of a Variability attribute
value
)

Maps an integer value its corresponding Variability attribute.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

CONSTANTback to summary
public static final Variability CONSTANT

Variability attribute representing Constant counters.

INVALIDback to summary
public static final Variability INVALID

An invalid Variablity value.

mapback to summary
private static Variability[] map
MONOTONICback to summary
public static final Variability MONOTONIC

Variability attribute representing a Monotonically changing counters.

nameback to summary
private String name
NATTRIBUTESback to summary
private static final int NATTRIBUTES
serialVersionUIDback to summary
private static final long serialVersionUID
valueback to summary
private int value
VARIABLEback to summary
public static final Variability VARIABLE

Variability attribute representing Variable counters.

Constructor Detail

Variabilityback to summary
private Variability(String name, int value)

Method Detail

intValueback to summary
public int intValue()

Returns the integer representation of this Variability attribute.

Returns:int

int - an integer representation of this Variability attribute.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string describing this Variability attribute.

Returns:String

String - a descriptive string for this enum.

toVariabilityback to summary
public static Variability toVariability(int value)

Maps an integer value its corresponding Variability attribute. If the integer value does not have a corresponding Variability enum value, the Variability#INVALID is returned

Parameters
value:int

an integer representation of a Variability attribute

Returns:Variability

Variability - The Variability object for the given value or Variability#INVALID if out of range.