All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.ipokerface.common.validation.validator.FutureConstraintValidator Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package cn.ipokerface.common.validation.validator;

import cn.ipokerface.common.validation.constraint.Future;

import java.util.Date;

/**
 * Created by       PokerFace
 * Create Date      2019-11-25.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: */ public class FutureConstraintValidator implements ConstraintValidator { public boolean validate(Date value, Future constraintAnnotation) { if (value == null) return true; if (value.getTime() > System.currentTimeMillis()) return true; return false; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy