示例#1
0
 /** @return tasks that have not yet been completed or deleted */
 public static Criterion activeAndVisible() {
   return Criterion.and(
       Task.COMPLETION_DATE.eq(0),
       Task.DELETION_DATE.eq(0),
       Task.HIDE_UNTIL.lt(Functions.now()));
 }
示例#2
0
 /** @return tasks that are not hidden at current time */
 public static Criterion isVisible() {
   return Task.HIDE_UNTIL.lt(Functions.now());
 }
示例#3
0
 /** @return tasks that are hidden at the current time */
 public static Criterion isHidden() {
   return Task.HIDE_UNTIL.gt(Functions.now());
 }