Code example for HashSet

Methods: addAll

0
    this.rowNames = this.crosstabSpecification.getRowDimensionNames();
    this.key = new Object[columnNames.length];
    this.rowKey = new Object[rowNames.length];
    this.currentCursorPosition = 0;
 
    this.knownNames = new HashSet<String>();
    this.knownNames.addAll(Arrays.asList(columnNames));
    this.knownNames.addAll(Arrays.asList(rowNames));
 
    this.knownRowNames = new HashSet<String>();
    this.knownRowNames.addAll(Arrays.asList(rowNames));
  } 
 
  /** 
   * Do we need a case1 padding? 
   * 
   * @param globalView 
   * @return the number of rows needed for the pre-padding or zero if no pre-padding is required. 
   */ 
  public int getPrePaddingRows(final DataRow globalView)
Experience pair programming with AI  Get Codota for Java