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:it.unimi.dsi.util.Properties.java

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

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

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

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

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

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

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

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

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

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

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

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

public java.util.Properties getProperties(final Enum<?> key) {
    return getProperties(key.name().toLowerCase());
}

From source file:org.apache.hadoop.mapred.gridmix.Gridmix.java

private <T> String getEnumValues(Enum<? extends T>[] e) {
    StringBuilder sb = new StringBuilder();
    String sep = "";
    for (Enum<? extends T> v : e) {
        sb.append(sep);/*  w  ww .  j ava  2s .  c  o  m*/
        sb.append(v.name());
        sep = "|";
    }
    return sb.toString();
}

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

public String[] getStringArray(final Enum<?> key) {
    return getStringArray(key.name().toLowerCase());
}

From source file:com.hazelcast.simulator.worker.tasks.AbstractWorkerWithMultipleProbes.java

@Override
public void bind(PropertyBinding binding) {
    Set<O> operations = operationSelectorBuilder.getOperations();

    workerProbes = new Probe[INITIAL_PROBE_ARRAY_LENGTH];

    for (Enum operation : operations) {
        int ordinal = operation.ordinal();
        if (ordinal >= workerProbes.length) {
            Probe[] newProbes = new Probe[2 * (ordinal + 1)];
            System.arraycopy(workerProbes, 0, newProbes, 0, workerProbes.length);
            this.workerProbes = newProbes;
        }/*from ww w.  ja  va  2s. c o m*/

        String probeName = capitalizeFully(operation.name(), '_').replace("_", "") + "Probe";
        Probe probe = binding.getOrCreateProbe(probeName, false);
        workerProbes[ordinal] = probe;
    }
}