-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cfc5e9
commit 0cd2444
Showing
3 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
plugin/src/main/groovy/org/unify4j/model/filter/DateTimeFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package org.unify4j.model.filter; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import org.unify4j.common.Time4j; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class DateTimeFilter implements Serializable { | ||
public DateTimeFilter() { | ||
super(); | ||
} | ||
|
||
public DateTimeFilter(Date from, Date to) { | ||
super(); | ||
this.from = from; | ||
this.to = to; | ||
} | ||
|
||
private Date from; | ||
private Date to; | ||
|
||
public Date getFrom() { | ||
return from; | ||
} | ||
|
||
public void setFrom(Date from) { | ||
this.from = from; | ||
} | ||
|
||
public Date getTo() { | ||
return to; | ||
} | ||
|
||
public void setTo(Date to) { | ||
this.to = to; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.format("DateTime filtering { from: '%s', to: '%s' }", Time4j.format(from), Time4j.format(to)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters