@SuppressWarnings("unchecked") public Pids(){
  Arrays.sort(PIDs,pidComparator);
}

@ SuppressWarnings ( "unchecked" ) public Pids ( ) { Arrays . sort ( PIDs , pidComparator ) ; }
creates a new instance of pids
