public int compareTo(@NonNull CpuState other){
  return Integer.compare(freq,other.freq);
}

public int compareTo ( @ NonNull CpuState other ) { return Integer . compare ( freq , other . freq ) ; }
for sorting , compare the freqs
