001package org.kuali.common.util.condition;
002
003import java.util.Date;
004
005import com.google.common.base.Preconditions;
006
007/**
008 * @deprecated use AfterCondition instead
009 */
010@Deprecated
011public final class AfterDateCondition implements Condition {
012
013        private final AfterTimeCondition condition;
014
015        public AfterDateCondition(Date targetDate) {
016                Preconditions.checkNotNull(targetDate, "'targetDate' cannot be null");
017                this.condition = new AfterTimeCondition(targetDate.getTime());
018        }
019
020        @Override
021        public boolean isTrue() {
022                return condition.isTrue();
023        }
024
025        public Date getTargetDate() {
026                return new Date(condition.getTargetTimeInMillis());
027        }
028
029}