View Javadoc
1   package org.kuali.common.util.condition;
2   
3   import com.google.common.base.Preconditions;
4   
5   /**
6    * @deprecated use AfterCondition instead
7    */
8   @Deprecated
9   public final class AfterTimeCondition implements Condition {
10  
11  	public AfterTimeCondition(long targetTimeInMillis) {
12  		Preconditions.checkArgument(targetTimeInMillis >= 0, "'targetTimeInMillis' must be >= 0");
13  		this.targetTimeInMillis = targetTimeInMillis;
14  	}
15  
16  	private final long targetTimeInMillis;
17  
18  	@Override
19  	public boolean isTrue() {
20  		return System.currentTimeMillis() > targetTimeInMillis;
21  	}
22  
23  	public long getTargetTimeInMillis() {
24  		return targetTimeInMillis;
25  	}
26  
27  }