Code example for MapMaker

0
    int partitionId) {
    ConcurrentMap<I, OutEdges<I, E>> partitionEdges =
        (ConcurrentMap<I, OutEdges<I, E>>) transientEdges.get(partitionId);
    if (partitionEdges == null) {
      ConcurrentMap<I, OutEdges<I, E>> newPartitionEdges =
          new MapMaker().concurrencyLevel(
              configuration.getNettyServerExecutionConcurrency()).makeMap(); 
      partitionEdges = (ConcurrentMap<I, OutEdges<I, E>>)
          transientEdges.putIfAbsent(partitionId, newPartitionEdges);
      if (partitionEdges == null) {
        partitionEdges = newPartitionEdges;
      } 
    } 
    return partitionEdges;
  } 
 
  @Override 
  protected OutEdges<I, E> getPartitionEdges( 
    Map.Entry<I, OutEdges<I, E>> entry) {
    return entry.getValue();
Connect your IDE to all the code out there  Get Codota for Java