isAfter
jdk1.8.0_101src.zip!javatimeLocalDateTime.java
public boolean isAfter(ChronoLocalDateTime> other) {
if (other instanceof LocalDateTime) {
return compareTo0((LocalDateTime) other) > 0;
}
return ChronoLocalDateTime.super.isAfter(other);
}
instanceof 是 Java 的保留关键字。它的作用是测试它左边的对象是否是它右边的类的实例,返回 boolean 的数据类型。



