com.testdroid.api.model.enums.Unit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
The newest version!
package com.testdroid.api.model.enums;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.temporal.ChronoUnit;
/**
* @author Adrian Zybala
*/
public enum Unit {
MONTH(ChronoUnit.MONTHS),
DAY(ChronoUnit.DAYS),
YEAR(ChronoUnit.YEARS),
HOUR(ChronoUnit.HOURS),
RUN(null),
PROJECT(null);
private final ChronoUnit chronoUnit;
Unit(ChronoUnit chronoUnit) {
this.chronoUnit = chronoUnit;
}
@JsonIgnore
public ChronoUnit getChronoUnit() {
return chronoUnit;
}
@JsonIgnore
public boolean isNotTimeUnit() {
return this.chronoUnit == null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy