List of usage examples for org.joda.time Days isGreaterThan
public boolean isGreaterThan(Days other)
From source file:de.localtoast.launchit.AppMetaData.java
License:Open Source License
public int getEffectivePriority() { int effectivePriority = priorityCounter; Days daysBetween = Days.daysBetween(lastStarted, DateTime.now()); if (daysBetween.isGreaterThan(PRIORITY_DECREASING_DELAY)) { effectivePriority = effectivePriority - (daysBetween.getDays() - PRIORITY_DECREASING_DELAY.getDays()); if (effectivePriority < 0) { effectivePriority = 0;// ww w. java 2 s .c o m } } return effectivePriority; }