MCPcopy Create free account
hub / github.com/antlr/codebuff / treeKeys

Method treeKeys

output/java_guava/1.4.18/MultimapBuilder.java:154–157  ·  view source on GitHub ↗

Uses a naturally-ordered TreeMap to map keys to value collections. The collections returned by Multimap#keySet(), Multimap#keys(), and Multimap#asMap() will iterate through the keys in sorted order. For all multimaps generated by the resulting builder, the {@l

()

Source from the content-addressed store, hash-verified

152 */
153
154 @SuppressWarnings("rawtypes")
155 public static MultimapBuilderWithKeys<Comparable> treeKeys() {
156 return treeKeys(Ordering.natural());
157 }
158
159 /**
160 * Uses a {@link TreeMap} sorted by the specified comparator to map keys to value collections.

Callers

nothing calls this directly

Calls 2

naturalMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected