dk.brics.string
Enum HotspotKind

java.lang.Object
  extended by java.lang.Enum<HotspotKind>
      extended by dk.brics.string.HotspotKind
All Implemented Interfaces:
Serializable, Comparable<HotspotKind>

public enum HotspotKind
extends Enum<HotspotKind>

There are two kinds of hotspots, originating from two different runtime methods.


Enum Constant Summary
ANALYZE
          ANALYZE hotspots originate from Strings.analyze calls.
CHECK
          CHECK hotspots originate from Strings.check calls.
 
Method Summary
static HotspotKind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HotspotKind[] 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

ANALYZE

public static final HotspotKind ANALYZE
ANALYZE hotspots originate from Strings.analyze calls.


CHECK

public static final HotspotKind CHECK
CHECK hotspots originate from Strings.check calls.

Method Detail

valueOf

public static HotspotKind valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

values

public static HotspotKind[] 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 (HotspotKind c : HotspotKind.values())
    System.out.println(c);

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


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.