List of usage examples for java.lang Enum name
String name
To view the source code for java.lang Enum name.
Click Source Link
From source file:it.unimi.dsi.util.Properties.java
public void setProperty(final Enum<?> key, final float f) { super.setProperty(key.name().toLowerCase(), Float.valueOf(f)); }
From source file:it.unimi.dsi.util.Properties.java
public void addProperty(final Enum<?> key, final double d) { super.addProperty(key.name().toLowerCase(), Double.valueOf(d)); }
From source file:it.unimi.dsi.util.Properties.java
public void setProperty(final Enum<?> key, final double d) { super.setProperty(key.name().toLowerCase(), Double.valueOf(d)); }
From source file:it.unimi.dsi.util.Properties.java
public void addProperty(final Enum<?> key, final boolean b) { super.addProperty(key.name().toLowerCase(), Boolean.valueOf(b)); }
From source file:it.unimi.dsi.util.Properties.java
public void setProperty(final Enum<?> key, final boolean b) { super.setProperty(key.name().toLowerCase(), Boolean.valueOf(b)); }
From source file:it.unimi.dsi.util.Properties.java
public BigDecimal getBigDecimal(final Enum<?> key, BigDecimal arg) { return getBigDecimal(key.name().toLowerCase(), arg); }
From source file:it.unimi.dsi.util.Properties.java
public BigInteger getBigInteger(final Enum<?> key, BigInteger arg) { return getBigInteger(key.name().toLowerCase(), arg); }
From source file:it.unimi.dsi.util.Properties.java
public java.util.Properties getProperties(final Enum<?> key, java.util.Properties arg) { return getProperties(key.name().toLowerCase(), arg); }
From source file:org.apache.hadoop.mapreduce.counters.AbstractCounters.java
/** * Find the counter for the given enum. The same enum will always return the * same counter.//from w w w . j av a 2s. c om * @param key the counter key * @return the matching counter object */ public synchronized C findCounter(Enum<?> key) { C counter = cache.get(key); if (counter == null) { counter = findCounter(key.getDeclaringClass().getName(), key.name()); cache.put(key, counter); } return counter; }
From source file:org.netxilia.spi.impl.storage.db.AbstractMapper.java
protected <E extends Enum<E>> List<String> toStringList(Collection<E> enumProperties) { List<String> strings = new ArrayList<String>(enumProperties.size()); for (Enum<?> e : enumProperties) { strings.add(e.name()); }//from w ww . j a va2 s. co m return strings; }