Package java.util

Examples of java.util.Date.after()


            updatedDate = new Date(prop);
        }
        final String msgProp = (String) msgProps.get(FieldName.DATE);
        SimpleDateFormat sdf = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z");
        final Date msgDate = sdf.parse(msgProp, new ParsePosition(0));
        if (updatedDate == null || msgDate.after(updatedDate)) {
            thrdProps.put(MessageFieldName.LAST_UPDATE, msgDate.getTime());
            resolver.commit();
        }
    }
View Full Code Here


            final String expirationTimeStamp = getTimestamp(token);
            final String tokenWithoutTimestamp = getTokenWithoutTimestamp(token);
            final String tokenSource = expirationTimeStamp + getTokenSource(user);
            final Date expirationTime = parseTimestamp(expirationTimeStamp);

            return expirationTime != null && expirationTime.after(new Date())
                    && passwordTokenEncoder.matches(tokenSource, tokenWithoutTimestamp);
        }
        return false;
    }
View Full Code Here

        Date expiration = getExpirationDate();
        if (expiration == null) {
            return false;
        }
        Date trialRefDate = new Date();
        boolean expired = trialRefDate.after(expiration);
        final String messageText;
        if (expired) {
            messageText = LOCALE.get("TrialExpired");
        }
        else {
View Full Code Here

  public abstract boolean isDateEnabled(Date d);

  public boolean isVisible(Date date) {
    Date first = getFirstVisibleDate();
    Date last = getLastVisibleDate();
    return (date != null && (first.equals(date) || last.equals(date) || (first.before(date) && last.after(date))));
  }

  public abstract void refresh();

  /**
 
View Full Code Here

        // Log.debug("pos: " + positionX + " " +
        // getDateFromViewPanelX(positionX) );

        Date newD = getDateFromViewPanelX(positionX);
        if (newD.after(getStartDate())) {
            hasDate.setEndDate(newD);
        }

        Log.debug("Eat endDateSet");
View Full Code Here

        Date newD = getDateFromViewPanelX(positionX);

        hasDate.setStartDate(newD);

        if (null != getEndDate() && newD.after(getEndDate())) {
            hasDate.setEndDate(newD);
        }

        // Log.debug("TLO: Start Date = " + getStartDate());
View Full Code Here

        Iterator<Resource> children = inbox.listChildren();
        while (children.hasNext()) {
            Resource child = children.next();
            ValueMap map = child.adaptTo(ValueMap.class);
            Date date = map.get("modifiedDate", Date.class);
            if (date != null && date.after(yesterday)) {
                yesterdayCounter++;
            }
            counter++;
        }
        return new long[] { counter, yesterdayCounter };
View Full Code Here

    Date date = dao.getJdbcTemplate().queryForObject(
        "select invocation_time from library.webservice_history hist"
        + " inner join music.artist a on hist.artist_id = a.id"
        + " where a.artist_name = upper(?)",
        Date.class, artist.getName());
    Assert.assertTrue(date.after(new Date()));
  }

  @Test
  public void blockLogsInvocationTimeInAnInfiniteFuture() {
    Calltype TOP = Calltype.ARTIST_GET_TOP_TRACKS;
View Full Code Here

    }

    public static boolean isActive(SystemNotification notification) {
        Date now = new Date();
        Date endDate = notification.getEndDate();
        return notification.getStartDate().before(now) && (endDate == null || endDate.after(now));
    }

    protected void startBackgroundThread(final LockRepository lockRepository, final UserRepository userRepository, final WorkQueueRepository workQueueRepository) {
        Runnable acquireLock = new Runnable() {
            @Override
View Full Code Here

        } else {
            valueDuplicate = clearDateBelowDay(valueDuplicate);
            rangeStartDuplicate = clearDateBelowDay(rangeStartDuplicate);
        }

        return !rangeStartDuplicate.after(valueDuplicate);
    }

    /**
     * Accepts dates earlier than or equal to rangeStart, depending on the
     * resolution. If the resolution is set to DAY, the range will compare on a
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.