Class ConcurrentLinkedHashMap.Builder<K,​V>

java.lang.Object
org.apache.groovy.util.concurrent.concurrentlinkedhashmap.ConcurrentLinkedHashMap.Builder<K,​V>
Enclosing class:
ConcurrentLinkedHashMap<K,​V>

public static final class ConcurrentLinkedHashMap.Builder<K,​V>
extends Object
A builder that creates ConcurrentLinkedHashMap instances. It provides a flexible approach for constructing customized instances with a named parameter syntax. It can be used in the following manner:

 ConcurrentMap<Vertex, Set<Edge>> graph = new Builder<Vertex, Set<Edge>>()
     .maximumWeightedCapacity(5000)
     .weigher(Weighers.<Edge>set())
     .build();
 
  • Constructor Details

  • Method Details