Java 类io.dropwizard.jersey.params.AbstractParam 实例源码

项目:emodb    文件:BlobStoreResource1.java   
private <T> T getRequired(AbstractParam<T> value, String name) {
    if (value == null) {
        throw new IllegalArgumentException(format("Missing required query parameter: %s", name));
    }
    return value.get();
}
项目:emodb    文件:DataStoreResource1.java   
private static <T> T getRequired(AbstractParam<T> param, String name) {
    if (param == null) {
        throw new IllegalArgumentException(format("Missing required query parameter: %s", name));
    }
    return param.get();
}
项目:emodb    文件:DataStoreResource1.java   
private <T> T getOptional(AbstractParam<T> param) {
    return (param != null) ? param.get() : null;
}