private boolean isExpired(RefreshObject refreshObject) {
        if (refreshObject == null) {
            return false;
        }

        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(refreshObject.getTimestamp());
        // calendar.add(Calendar.SECOND, period.intValue());
        calendar.add(Calendar.MILLISECOND, period.intValue());

        Date now = new Date();
        return now.after(calendar.getTime());
    }
private boolean isExpired ( RefreshObject refreshObject ) { if ( refreshObject == null ) { return false ; } Calendar calendar = Calendar . getInstance ( ) ; calendar . setTimeInMillis ( refreshObject . getTimestamp ( ) ) ; calendar . add ( Calendar . MILLISECOND , period . intValue ( ) ) ; Date now = new Date ( ) ; return now . after ( calendar . getTime ( ) ) ; }
判断对象是否过期

@param refreshObject
@return