
com.lifeonwalden.springscheduling.cronBuilder.model.When Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-scheduler Show documentation
Show all versions of spring-scheduler Show documentation
A persistence scheduler system based on Spring framework
package com.lifeonwalden.springscheduling.cronBuilder.model;
import com.lifeonwalden.springscheduling.cronBuilder.time.CronTime;
/**
* 当
*
* @author luhong
*
*/
public class When implements FieldDefinition {
private CronTime time;
public When(CronTime time) {
this.time = time;
}
@Override
public String toExpression() {
return Integer.toString(time.toCronTime());
}
@Override
public boolean isValid(Class> clazz) {
return clazz.isInstance(time);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy