Mercurial > dive4elements > river
changeset 7484:8b614d152a79
WQDay is increasing(?) if it is empty of last is greater than first.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 31 Oct 2013 18:30:46 +0100 |
parents | f206f6049b2b |
children | 47905b570eaf |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQDay.java |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQDay.java Thu Oct 31 18:26:49 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQDay.java Thu Oct 31 18:30:46 2013 +0100 @@ -44,10 +44,7 @@ public boolean isIncreasing() { - int lo = getDay(0); - int hi = getDay(size()-1); - - return lo < hi; + return size() == 0 || getDay(0) < getDay(size()-1); }