Example usage for com.google.gwt.dev.util.collect HashMap values

List of usage examples for com.google.gwt.dev.util.collect HashMap values

Introduction

In this page you can find the example usage for com.google.gwt.dev.util.collect HashMap values.

Prototype

Object[] values

To view the source code for com.google.gwt.dev.util.collect HashMap values.

Click Source Link

Document

Backing store for all the values; transient due to custom serialization.

Usage

From source file:forplay.rebind.AutoClientBundleGenerator.java

License:Apache License

/**
 * Filter file set, preferring *.mp3 files where alternatives exist.
 *///  ww w. j a va2 s. c o  m
private HashSet<File> preferMp3(Set<File> files) {
    HashMap<String, File> map = new HashMap<String, File>();
    for (File file : files) {
        String path = stripExtension(file.getPath());
        if (file.getName().endsWith(".mp3") || !map.containsKey(path)) {
            map.put(path, file);
        }
    }
    return new HashSet<File>(map.values());
}