Example usage for java.lang Enum name

List of usage examples for java.lang Enum name

Introduction

In this page you can find the example usage for java.lang Enum name.

Prototype

String name

To view the source code for java.lang Enum name.

Click Source Link

Document

The name of this enum constant, as declared in the enum declaration.

Usage

From source file:com.hazelcast.simulator.test.TestContainer.java

private Map<Enum, Probe> getOperationProbeMap(Class<? extends IWorker> workerClass, IWorker worker) {
    if (!IMultipleProbesWorker.class.isAssignableFrom(workerClass)) {
        return null;
    }/*from  w  w  w  .  j ava2 s.  com*/

    // remove the default worker probe
    probeMap.remove(DEFAULT_WORKER_PROBE_NAME);

    Map<Enum, Probe> operationProbes = new HashMap<Enum, Probe>();
    for (Enum operation : ((IMultipleProbesWorker) worker).getOperations()) {
        String probeName = capitalizeFully(operation.name(), '_').replace("_", "") + "Probe";
        operationProbes.put(operation, getOrCreateProbe(probeName, true));
    }
    return operationProbes;
}

From source file:it.unimi.dsi.util.Properties.java

public int getInt(final Enum<?> key) {
    return getInt(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public Configuration subset(final Enum<?> key) {
    return subset(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public byte getByte(final Enum<?> key) {
    return getByte(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public Iterator<?> getKeys(final Enum<?> key) {
    return getKeys(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public List<?> getList(final Enum<?> key) {
    return getList(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public long getLong(final Enum<?> key) {
    return getLong(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public float getFloat(final Enum<?> key) {
    return getFloat(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public short getShort(final Enum<?> key) {
    return getShort(key.name().toLowerCase());
}

From source file:it.unimi.dsi.util.Properties.java

public double getDouble(final Enum<?> key) {
    return getDouble(key.name().toLowerCase());
}