List of usage examples for java.util EnumMap values
public Collection<V> values()
From source file:Tutorial.java
public static void main(String[] args) { EnumMap<Tutorial, String> map = new EnumMap<Tutorial, String>(Tutorial.class); map.put(Tutorial.CSS, "1"); map.put(Tutorial.Python, "2"); map.put(Tutorial.PHP, "3"); map.put(Tutorial.Java, "4"); System.out.println(map);// w w w . j av a 2 s .c o m Collection<String> values = map.values(); System.out.println("Collection:" + values); }
From source file:org.codehaus.mojo.license.UpdateFileHeaderMojo.java
protected void clear() { Set<File> files = getProcessedFiles(); if (files != null) { files.clear();/*from w ww .j a va 2s . c o m*/ } EnumMap<FileState, Set<File>> result = getResult(); if (result != null) { for (Set<File> fileSet : result.values()) { fileSet.clear(); } result.clear(); } }