private boolean add(int part){
  if (!parts.contains(part)) {
    parts.add(part);
    return true;
  }
  return false;
}

private boolean add ( int part ) { if ( ! parts . contains ( part ) ) { parts . add ( part ) ; return true ; } return false ; }
adds partition to partition set .
