public void addMap(Map<K,V> map,K min,K max){
  if (min != null && max != null && keyType.compare(min,max) > 0) {
    DataUtils.newIllegalArgumentException("Invalid range: {0} .. {1}",min,max);
  }
  int len=shards.length + 1;
  Shard<K,V>[] newShards=Arrays.copyOf(shards,len);
  Shard<K,V> newShard=new Shard<K,V>();
  newShard.map=map;
  newShard.minIncluding=min;
  newShard.maxExcluding=max;
  newShards[len - 1]=newShard;
  shards=newShards;
}

public void addMap ( Map < K , V > map , K min , K max ) { if ( min != null && max != null && keyType . compare ( min , max ) > 0 ) { DataUtils . newIllegalArgumentException ( "Invalid range: {0} .. {1}" , min , max ) ; } int len = shards . length + 1 ; Shard < K , V > [ ] newShards = Arrays . copyOf ( shards , len ) ; Shard < K , V > newShard = new Shard < K , V > ( ) ; newShard . map = map ; newShard . minIncluding = min ; newShard . maxExcluding = max ; newShards [ len - 1 ] = newShard ; shards = newShards ; }
add the given shard .
