MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / select

Method select

onjava/Countries.java:281–288  ·  view source on GitHub ↗
(final int size)

Source from the content-addressed store, hash-verified

279 }
280 // Create a partial map of 'size' countries:
281 static Map<String,String> select(final int size) {
282 return new FlyweightMap() {
283 @Override
284 public Set<Map.Entry<String,String>> entrySet() {
285 return new EntrySet(size);
286 }
287 };
288 }
289 static Map<String,String> map = new FlyweightMap();
290 public static Map<String,String> capitals() {
291 return map; // The entire map

Callers 2

capitalsMethod · 0.95
namesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected