Example usage for org.joda.time Days isGreaterThan

List of usage examples for org.joda.time Days isGreaterThan

Introduction

In this page you can find the example usage for org.joda.time Days isGreaterThan.

Prototype

public boolean isGreaterThan(Days other) 

Source Link

Document

Is this days instance greater than the specified number of days.

Usage

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;
}