org.sourceforge.jemm.database.components
Enum GCStatus

java.lang.Object
  extended by java.lang.Enum<GCStatus>
      extended by org.sourceforge.jemm.database.components.GCStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GCStatus>

public enum GCStatus
extends java.lang.Enum<GCStatus>

GC status represents the GC colouring for the mark and sweep garbage collector.

Author:
Rory Graves

Enum Constant Summary
BLACK
          The object is referenced and any children have all been marked
GREY
          The object is referenced, but and references have not been marked.
INIT
          The object is being initialised and may not be gced
WHITE
          The object is unreferenced
 
Method Summary
static GCStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GCStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INIT

public static final GCStatus INIT
The object is being initialised and may not be gced


WHITE

public static final GCStatus WHITE
The object is unreferenced


GREY

public static final GCStatus GREY
The object is referenced, but and references have not been marked.


BLACK

public static final GCStatus BLACK
The object is referenced and any children have all been marked

Method Detail

values

public static GCStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GCStatus c : GCStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GCStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2009. All Rights Reserved.