io.dropwizard.jersey.jsr310.YearMonthParam Maven / Gradle / Ivy
package io.dropwizard.jersey.jsr310;
import io.dropwizard.jersey.params.AbstractParam;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.time.YearMonth;
/**
* A parameter encapsulating year and month values. All non-parsable values will return a {@code 400 Bad
* Request} response.
*
* @see YearMonth
*/
public class YearMonthParam extends AbstractParam {
public YearMonthParam(@Nullable final String input) {
super(input);
}
@Override
protected YearMonth parse(@Nullable final String input) throws Exception {
return YearMonth.parse(input);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy