mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
21 lines
467 B
Java
21 lines
467 B
Java
|
|
import java.util.*;
|
|
import java.util.stream.IntStream;
|
|
import java.util.stream.Stream;
|
|
|
|
import static java.util.stream.Collectors.counting;
|
|
import static java.util.stream.Collectors.groupingBy;
|
|
|
|
abstract class Token {
|
|
|
|
|
|
private static B<Long> getMode(Optional<Map.Entry<Integer, Long>> max){
|
|
return max
|
|
.flatMap(e -> Optional.of(new B<>(Long.valu<caret>eOf(e.getValue().longValue()))))
|
|
.get();
|
|
}
|
|
|
|
static class B<K> {
|
|
public B(K k) {}
|
|
}
|
|
} |