[Minor] Added DateSelection(DateRange)

This commit is contained in:
Robert von Burg 2018-01-12 16:16:11 +01:00
parent d385025609
commit c5e272eabd
1 changed files with 7 additions and 3 deletions

View File

@ -1,12 +1,12 @@
/*
* Copyright 2013 Robert von Burg <eitch@eitchnet.ch>
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -30,6 +30,10 @@ public class DateSelection extends OrderSelection {
this.dateRange = new DateRange();
}
public DateSelection(DateRange dateRange) {
this.dateRange = dateRange;
}
public DateSelection from(Date from, boolean inclusive) {
this.dateRange.from(from, inclusive);
return this;