From c5e272eabd0ca4580a97a5c493689078ef3a3af7 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 12 Jan 2018 16:16:11 +0100 Subject: [PATCH] [Minor] Added DateSelection(DateRange) --- .../java/li/strolch/model/query/DateSelection.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/li.strolch.model/src/main/java/li/strolch/model/query/DateSelection.java b/li.strolch.model/src/main/java/li/strolch/model/query/DateSelection.java index 8531e9522..0d0b0c67d 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/query/DateSelection.java +++ b/li.strolch.model/src/main/java/li/strolch/model/query/DateSelection.java @@ -1,12 +1,12 @@ /* * Copyright 2013 Robert von Burg - * + * * 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;