APISonar


java.util.ArrayList.entrySet

> java > util > ArrayList > entrySet
java APIs util APIs ArrayList APIs entrySet APIs

Example 1
ArrayList<PartSpec> partSpecs;

  public DropTableDesc(String tableName, Map<Integer, List<ExprNodeGenericFuncDesc>> partSpecs,
      TableType expectedType, boolean ifPurge, ReplicationSpec replicationSpec,  boolean validationRequired) {
    this.tableName = tableName;
    this.partSpecs = new ArrayList<PartSpec>(partSpecs.size());
    for (Map.Entry<Integer, List<ExprNodeGenericFuncDesc>> partSpec : partSpecs.entrySet()) {
      int prefixLength = partSpec.getKey();
      for (ExprNodeGenericFuncDesc expr : partSpec.getValue()) {
        this.partSpecs.add(new PartSpec(expr, prefixLength));
      }
    }
    this.expectedType = expectedType;
    this.ifPurge = ifPurge;
    this.replicationSpec = replicationSpec;
    this.validationRequired = validationRequired;
  }