Example usage for org.apache.commons.lang3.time Period equals

List of usage examples for org.apache.commons.lang3.time Period equals

Introduction

In this page you can find the example usage for org.apache.commons.lang3.time Period equals.

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:org.amanzi.neo.core.period.PeriodManager.java

@Deprecated
public static long getNextStartDate(final Period period, final long endDate, final long currentStartDate) {
    long nextStartDate = period.addPeriod(currentStartDate);
    if (!period.equals(Period.HOURLY) && (nextStartDate > endDate)) {
        nextStartDate = endDate;//from   w w w.j a  v  a  2s . co  m
    }
    return nextStartDate;
}