Calendar

1. before,after 方法 ,源码为:

    public boolean after(Object when) {
        return when instanceof Calendar
            && compareTo((Calendar)when) > 0;
    }

这两方法参数类型是 Object  但只有是 Calendar 类型时才有可能返回true。

posted @ 2017-09-25 10:56  不知为何就叫呵呵  阅读(233)  评论(0编辑  收藏  举报