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

com.lifeonwalden.springscheduling.cronBuilder.model.When Maven / Gradle / Ivy

There is a newer version: 0.2.11
Show newest version
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