关于继承comparator接口的问题
为什么我的需要实现这么多的方法??是因为jdk1.8?
package com.choosecourse; import java.util.Comparator; import java.util.function.Function; import java.util.function.ToDoubleFunction; import java.util.function.ToIntFunction; import java.util.function.ToLongFunction; public class StuComparator implements Comparator<Student> { @Override public int compare(Student arg0, Student arg1) { // TODO Auto-generated method stub return 0; } @Override public static <T, U extends Comparable<? super U>> Comparator<T> comparing( Function<? super T, ? extends U> arg0) { // TODO Auto-generated method stub return null; } @Override public static <T, U> Comparator<T> comparing( Function<? super T, ? extends U> arg0, Comparator<? super U> arg1) { // TODO Auto-generated method stub return null; } @Override public static <T> Comparator<T> comparingDouble( ToDoubleFunction<? super T> arg0) { // TODO Auto-generated method stub return null; } @Override public static <T> Comparator<T> comparingInt(ToIntFunction<? super T> arg0) { // TODO Auto-generated method stub return null; } @Override public static <T> Comparator<T> comparingLong(ToLongFunction<? super T> arg0) { // TODO Auto-generated method stub return null; } @Override public static <T extends Comparable<? super T>> Comparator<T> naturalOrder() { // TODO Auto-generated method stub return null; } @Override public static <T> Comparator<T> nullsFirst(Comparator<? super T> arg0) { // TODO Auto-generated method stub return null; } @Override public static <T> Comparator<T> nullsLast(Comparator<? super T> arg0) { // TODO Auto-generated method stub return null; } @Override public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() { // TODO Auto-generated method stub return null; } @Override public Comparator<Student> reversed() { // TODO Auto-generated method stub return null; } @Override public Comparator<Student> thenComparing(Comparator<? super Student> arg0) { // TODO Auto-generated method stub return null; } @Override public <U extends Comparable<? super U>> Comparator<Student> thenComparing( Function<? super Student, ? extends U> arg0) { // TODO Auto-generated method stub return null; } @Override public <U> Comparator<Student> thenComparing( Function<? super Student, ? extends U> arg0, Comparator<? super U> arg1) { // TODO Auto-generated method stub return null; } @Override public Comparator<Student> thenComparingDouble( ToDoubleFunction<? super Student> arg0) { // TODO Auto-generated method stub return null; } @Override public Comparator<Student> thenComparingInt( ToIntFunction<? super Student> arg0) { // TODO Auto-generated method stub return null; } @Override public Comparator<Student> thenComparingLong( ToLongFunction<? super Student> arg0) { // TODO Auto-generated method stub return null; } }