mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix comment
This commit is contained in:
parent
5f44ed25f0
commit
4e11aeea37
@ -47,14 +47,15 @@ import java.util.function.Supplier;
|
|||||||
* .build();
|
* .build();
|
||||||
* </pre>
|
* </pre>
|
||||||
* <p> 还可能这样构建Map对象:</p>
|
* <p> 还可能这样构建Map对象:</p>
|
||||||
* <pre>
|
* {@code
|
||||||
* HashMap<String, String> colorMap = GenericBuilder
|
* HashMap<String, String> colorMap = GenericBuilder
|
||||||
* .of(HashMap<String,String>::new)
|
* .of(HashMap<String,String>::new)
|
||||||
* .with(Map::put, "red", "#FF0000")
|
* .with(Map::put, "red", "#FF0000")
|
||||||
* .with(Map::put, "yellow", "#FFFF00")
|
* .with(Map::put, "yellow", "#FFFF00")
|
||||||
* .with(Map::put, "blue", "#0000FF")
|
* .with(Map::put, "blue", "#0000FF")
|
||||||
* .build();
|
* .build();
|
||||||
* </pre>
|
* }
|
||||||
|
*
|
||||||
* <p>注意:本工具类支持调用的构造方法的参数数量不超过5个,一般方法的参数数量不超过2个,更多的参数不利于阅读和维护。</p>
|
* <p>注意:本工具类支持调用的构造方法的参数数量不超过5个,一般方法的参数数量不超过2个,更多的参数不利于阅读和维护。</p>
|
||||||
*
|
*
|
||||||
* @author TomXin
|
* @author TomXin
|
||||||
@ -214,7 +215,7 @@ public class GenericBuilder<T> implements Builder<T> {
|
|||||||
* @return GenericBuilder对象
|
* @return GenericBuilder对象
|
||||||
*/
|
*/
|
||||||
public <P1, P2> GenericBuilder<T> with(Consumer3<T, P1, P2> consumer, P1 p1, P2 p2) {
|
public <P1, P2> GenericBuilder<T> with(Consumer3<T, P1, P2> consumer, P1 p1, P2 p2) {
|
||||||
modifiers.add(instant ->{consumer.accept(instant, p1, p2);});
|
modifiers.add(instant -> consumer.accept(instant, p1, p2));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,6 +142,7 @@ public class ByteUtil {
|
|||||||
* 自定义端序
|
* 自定义端序
|
||||||
*
|
*
|
||||||
* @param bytes byte数组
|
* @param bytes byte数组
|
||||||
|
* @param start 开始位置(包含)
|
||||||
* @param byteOrder 端序
|
* @param byteOrder 端序
|
||||||
* @return int值
|
* @return int值
|
||||||
* @since 5.7.21
|
* @since 5.7.21
|
||||||
|
Loading…
x
Reference in New Issue
Block a user