dk.brics.string
Enum HotspotKind
java.lang.Object
java.lang.Enum<HotspotKind>
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.
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. |
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.
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.