本文整理了Java中org.jooq.lambda.Unchecked.doubleSupplier()
方法的一些代码示例,展示了Unchecked.doubleSupplier()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Unchecked.doubleSupplier()
方法的具体详情如下:
包路径:org.jooq.lambda.Unchecked
类名称:Unchecked
方法名:doubleSupplier
[英]Wrap a CheckedDoubleSupplier in a DoubleSupplier.
Example: ``
ResultSet rs = statement.executeQuery();
Stream.generate(Unchecked.doubleSupplier(() -> rs.getDouble(1)));
[中]将选中的双供应商包装在双供应商中。
示例:``
ResultSet rs = statement.executeQuery();
Stream.generate(Unchecked.doubleSupplier(() -> rs.getDouble(1)));
代码示例来源:origin: org.jooq/jool-java-8
/**
* Wrap a {@link CheckedDoubleSupplier} in a {@link DoubleSupplier}.
* <p>
* Example:
* <code><pre>
* ResultSet rs = statement.executeQuery();
* Stream.generate(Unchecked.doubleSupplier(() -> rs.getDouble(1)));
* </pre></code>
*/
public static DoubleSupplier doubleSupplier(CheckedDoubleSupplier supplier) {
return Unchecked.doubleSupplier(supplier, Unchecked.RETHROW_ALL);
}
代码示例来源:origin: org.jooq/jool
/**
* Wrap a {@link CheckedDoubleSupplier} in a {@link DoubleSupplier}.
* <p>
* Example:
* <code><pre>
* ResultSet rs = statement.executeQuery();
* Stream.generate(Unchecked.doubleSupplier(() -> rs.getDouble(1)));
* </pre></code>
*/
public static DoubleSupplier doubleSupplier(CheckedDoubleSupplier supplier) {
return Unchecked.doubleSupplier(supplier, Unchecked.RETHROW_ALL);
}
代码示例来源:origin: org.jooq/jool
/**
* Wrap a {@link CheckedDoubleSupplier} in a {@link DoubleSupplier}.
* <p>
* Example:
* <code><pre>
* ResultSet rs = statement.executeQuery();
* Stream.generate(Unchecked.doubleSupplier(() -> rs.getDouble(1)));
* </pre></code>
*/
public static DoubleSupplier doubleSupplier(CheckedDoubleSupplier supplier) {
return doubleSupplier(supplier, THROWABLE_TO_RUNTIME_EXCEPTION);
}
代码示例来源:origin: org.jooq/jool
/**
* @see {@link Unchecked#doubleSupplier(CheckedDoubleSupplier)}
*/
static DoubleSupplier unchecked(CheckedDoubleSupplier supplier) {
return Unchecked.doubleSupplier(supplier);
}
代码示例来源:origin: org.jooq/jool
/**
* @see {@link Unchecked#doubleSupplier(CheckedDoubleSupplier, Consumer)}
*/
static DoubleSupplier unchecked(CheckedDoubleSupplier supplier, Consumer<Throwable> handler) {
return Unchecked.doubleSupplier(supplier, handler);
}
}
代码示例来源:origin: org.jooq/jool-java-8
/**
* Wrap a {@link CheckedDoubleSupplier} in a {@link DoubleSupplier}.
* <p>
* Example:
* <code><pre>
* ResultSet rs = statement.executeQuery();
* Stream.generate(Unchecked.doubleSupplier(() -> rs.getDouble(1)));
* </pre></code>
*/
public static DoubleSupplier doubleSupplier(CheckedDoubleSupplier supplier) {
return doubleSupplier(supplier, THROWABLE_TO_RUNTIME_EXCEPTION);
}
代码示例来源:origin: org.jooq/jool-java-8
/**
* @see {@link Unchecked#doubleSupplier(CheckedDoubleSupplier)}
*/
static DoubleSupplier unchecked(CheckedDoubleSupplier supplier) {
return Unchecked.doubleSupplier(supplier);
}
代码示例来源:origin: org.jooq/jool-java-8
/**
* @see {@link Unchecked#doubleSupplier(CheckedDoubleSupplier, Consumer)}
*/
static DoubleSupplier unchecked(CheckedDoubleSupplier supplier, Consumer<Throwable> handler) {
return Unchecked.doubleSupplier(supplier, handler);
}
}
内容来源于网络,如有侵权,请联系作者删除!