fix comment

This commit is contained in:
Looly 2019-10-02 16:05:50 +08:00
parent 3acf9c4e70
commit 522ed4308d
37 changed files with 85 additions and 85 deletions

View File

@ -10,7 +10,7 @@ import cn.hutool.core.util.HashUtil;
/**
* BloomFilter实现方式2此方式使用BitSet存储<br>
* Hash算法的使用使用固定顺序只需指定个数
* Hash算法的使用使用固定顺序只需指定个数
* @author loolly
*
*/

View File

@ -33,7 +33,7 @@ public class Base62Codec implements Serializable{
};
/**
* 反转风格将GMP风格中的大小写做转换
* 反转风格将GMP风格中的大小写做转换
*/
private static final byte[] INVERTED = { //
'0', '1', '2', '3', '4', '5', '6', '7', //

View File

@ -244,7 +244,7 @@ public class CollUtil {
}
/**
* 其中一个集合在另一个集合中是否至少包含一个元素是两个集合是否至少有一个共同的元素
* 其中一个集合在另一个集合中是否至少包含一个元素是两个集合是否至少有一个共同的元素
*
* @param coll1 集合1
* @param coll2 集合2
@ -273,7 +273,7 @@ public class CollUtil {
}
/**
* 集合1中是否包含集合2中所有的元素集合2是否为集合1的子集
* 集合1中是否包含集合2中所有的元素集合2是否为集合1的子集
*
* @param coll1 集合1
* @param coll2 集合2

View File

@ -10,7 +10,7 @@ import cn.hutool.core.util.StrUtil;
/**
* 版本比较器<br>
* 比较两个版本的大小<br>
* 排序时版本从小到大排序比较时小版本在前大版本在后<br>
* 排序时版本从小到大排序比较时小版本在前大版本在后<br>
* 支持如1.3.20.86.82.201601018.5a/8.5c等版本形式<br>
* 参考https://www.cnblogs.com/shihaiming/p/6286575.html
*
@ -32,7 +32,7 @@ public class VersionComparator implements Comparator<String>, Serializable {
// -----------------------------------------------------------------------------------------------------
/**
* 比较两个版本<br>
* null版本排在最小
* null版本排在最小
* <pre>
* compare(null, "v1") &lt; 0
* compare("v1", "v1") = 0

View File

@ -33,7 +33,7 @@ public class DateModifier {
* 修改日期
*
* @param calendar {@link Calendar}
* @param dateField 日期字段保留到哪个日期字段
* @param dateField 日期字段保留到哪个日期字段
* @param modifyType 修改类型包括舍去四舍五入进一等
* @return 修改后的{@link Calendar}
*/

View File

@ -908,7 +908,7 @@ public class DateUtil {
}
/**
* 获取秒级别的开始时间忽略毫秒部分
* 获取秒级别的开始时间忽略毫秒部分
*
* @param date 日期
* @return {@link DateTime}
@ -919,7 +919,7 @@ public class DateUtil {
}
/**
* 获取秒级别的结束时间毫秒设置为999
* 获取秒级别的结束时间毫秒设置为999
*
* @param date 日期
* @return {@link DateTime}
@ -930,7 +930,7 @@ public class DateUtil {
}
/**
* 获取秒级别的开始时间忽略毫秒部分
* 获取秒级别的开始时间忽略毫秒部分
*
* @param calendar 日期 {@link Calendar}
* @return {@link Calendar}
@ -941,7 +941,7 @@ public class DateUtil {
}
/**
* 获取秒级别的结束时间毫秒设置为999
* 获取秒级别的结束时间毫秒设置为999
*
* @param calendar 日期 {@link Calendar}
* @return {@link Calendar}

View File

@ -1582,7 +1582,7 @@ public class FileUtil {
String element;
for (int i = pathList.size() - 1; i >= 0; i--) {
element = pathList.get(i);
// 只处理非.的目录只处理非当前目录
// 只处理非.的目录只处理非当前目录
if (false == StrUtil.DOT.equals(element)) {
if (StrUtil.DOUBLE_DOT.equals(element)) {
tops++;

View File

@ -4,7 +4,7 @@ import java.io.IOException;
import java.io.OutputStream;
/**
* 此OutputStream写出数据到<b>/dev/null</b>忽略所有数据<br>
* 此OutputStream写出数据到<b>/dev/null</b>忽略所有数据<br>
* 来自 Apache Commons io
*
* @author looly

View File

@ -226,7 +226,7 @@ public class Assert {
}
/**
* 断言给定字符串是否不被另一个字符串包含是否为子串
* 断言给定字符串是否不被另一个字符串包含是否为子串
*
* <pre class="code">
* Assert.doesNotContain(name, "rod", "Name must not contain 'rod'");
@ -247,7 +247,7 @@ public class Assert {
}
/**
* 断言给定字符串是否不被另一个字符串包含是否为子串
* 断言给定字符串是否不被另一个字符串包含是否为子串
*
* <pre class="code">
* Assert.doesNotContain(name, "rod", "Name must not contain 'rod'");

View File

@ -187,7 +187,7 @@ public class Range<T> implements Iterable<T>, Iterator<T>, Serializable {
* 步进接口可以定义以下逻辑
*
* <pre>
* 1步进规则对象如何做步进
* 1步进规则对象如何做步进
* 2步进大小通过实现此接口在实现类中定义一个对象属性可灵活定义步进大小
* 3限制range个数通过实现此接口在实现类中定义一个对象属性可灵活定义limit限制range个数
* </pre>

View File

@ -8,7 +8,7 @@ package cn.hutool.core.text.escape;
class InternalEscapeUtil {
/**
* 将数组中的0和1位置的值互换键值转换
* 将数组中的0和1位置的值互换键值转换
*
* @param array String[][] 被转换的数组
* @return String[][] 转换后的数组

View File

@ -25,13 +25,13 @@ public class ExecutorBuilder implements Builder<ThreadPoolExecutor> {
private int corePoolSize;
/** 最大池大小(允许同时执行的最大线程数) */
private int maxPoolSize = Integer.MAX_VALUE;
/** 线程存活时间,当池中线程多于初始大小时,多出的线程保留的时长 */
/** 线程存活时间,当池中线程多于初始大小时,多出的线程保留的时长 */
private long keepAliveTime = TimeUnit.SECONDS.toNanos(60);
/** 队列,用于存在未执行的线程 */
private BlockingQueue<Runnable> workQueue;
/** 线程工厂,用于自定义线程创建 */
private ThreadFactory threadFactory;
/** 当线程阻塞block时的异常处理器所谓线程阻塞线程池和等待队列已满,无法处理线程时采取的策略 */
/** 当线程阻塞block时的异常处理器所谓线程阻塞线程池和等待队列已满,无法处理线程时采取的策略 */
private RejectedExecutionHandler handler;
/** 线程执行超时后是否回收线程 */
private Boolean allowCoreThreadTimeOut;
@ -59,7 +59,7 @@ public class ExecutorBuilder implements Builder<ThreadPoolExecutor> {
}
/**
* 设置线程存活时间当池中线程多于初始大小时多出的线程保留的时长
* 设置线程存活时间当池中线程多于初始大小时多出的线程保留的时长
*
* @param keepAliveTime 线程存活时间
* @param unit 单位
@ -70,7 +70,7 @@ public class ExecutorBuilder implements Builder<ThreadPoolExecutor> {
}
/**
* 设置线程存活时间当池中线程多于初始大小时多出的线程保留的时长单位纳秒
* 设置线程存活时间当池中线程多于初始大小时多出的线程保留的时长单位纳秒
*
* @param keepAliveTime 线程存活时间单位纳秒
* @return this
@ -134,7 +134,7 @@ public class ExecutorBuilder implements Builder<ThreadPoolExecutor> {
}
/**
* 设置当线程阻塞block时的异常处理器所谓线程阻塞线程池和等待队列已满无法处理线程时采取的策略
* 设置当线程阻塞block时的异常处理器所谓线程阻塞线程池和等待队列已满无法处理线程时采取的策略
* <p>
* 此处可以使用JDK预定义的几种策略{@link RejectPolicy}枚举
*

View File

@ -8,7 +8,7 @@ import cn.hutool.core.exceptions.UtilException;
/**
* 全局公共线程池<br>
* 此线程池是一个无限线程池加入的线程不等待任何线程直接执行
* 此线程池是一个无限线程池加入的线程不等待任何线程直接执行
*
* @author Looly
*

View File

@ -57,7 +57,7 @@ public class ClassUtil {
}
/**
* 是否为顶层类定义在包中的类而非定义在类中的内部类
* 是否为顶层类定义在包中的类而非定义在类中的内部类
*
* @param clazz
* @return 是否为顶层类
@ -924,7 +924,7 @@ public class ClassUtil {
* 获得给定类的泛型参数
*
* @param clazz 被检查的类必须是已经确定泛型类型的类
* @param index 泛型类型的索引号第几个泛型类型
* @param index 泛型类型的索引号第几个泛型类型
* @return {@link Class}
*/
public static Class<?> getTypeArgument(Class<?> clazz, int index) {

View File

@ -1654,7 +1654,7 @@ public class NumberUtil {
/**
* 比较大小值相等 返回true<br>
* 此方法通过调用{@link BigDecimal#compareTo(BigDecimal)}方法来判断是否相等<br>
* 此方法判断值相等时忽略精度的0.00 == 0
* 此方法判断值相等时忽略精度的0.00 == 0
*
* @param bigNum1 数字1
* @param bigNum2 数字2

View File

@ -471,7 +471,7 @@ public class ObjectUtil {
* 获得给定类的第一个泛型参数
*
* @param obj 被检查的对象
* @param index 泛型类型的索引号第几个泛型类型
* @param index 泛型类型的索引号第几个泛型类型
* @return {@link Class}
* @since 3.0.8
*/

View File

@ -3271,7 +3271,7 @@ public class StrUtil {
/**
* 比较两个版本<br>
* null版本排在最小
* null版本排在最小
*
* <pre>
* StrUtil.compareVersion(null, "v1") &lt; 0
@ -4031,7 +4031,7 @@ public class StrUtil {
/**
* 循环位移指定位置的字符串为指定距离<br>
* 当moveLength大于0向右位移小于0向左位移0不位移<br>
* 当moveLength大于字符串长度时采取循环位移策略位移到头后从头位移例如长度为10位移13则表示位移3
* 当moveLength大于字符串长度时采取循环位移策略位移到头后从头位移例如长度为10位移13则表示位移3
*
* @param str 字符串
* @param startInclude 起始位置包括

View File

@ -203,7 +203,7 @@ public class TypeUtil {
* 获得给定类的泛型参数
*
* @param type 被检查的类型必须是已经确定泛型类型的类
* @param index 泛型类型的索引号第几个泛型类型
* @param index 泛型类型的索引号第几个泛型类型
* @return {@link Type}
*/
public static Type getTypeArgument(Type type, int index) {

View File

@ -368,7 +368,7 @@ public class XmlUtil {
// -------------------------------------------------------------------------------------- Create
/**
* 创建XML文档<br>
* 创建的XML默认是utf8编码修改编码的过程是在toStr和toFile方法里XML在转为文本的时候才定义编码
* 创建的XML默认是utf8编码修改编码的过程是在toStr和toFile方法里XML在转为文本的时候才定义编码
*
* @return XML文档
* @since 4.0.8
@ -397,7 +397,7 @@ public class XmlUtil {
/**
* 创建XML文档<br>
* 创建的XML默认是utf8编码修改编码的过程是在toStr和toFile方法里XML在转为文本的时候才定义编码
* 创建的XML默认是utf8编码修改编码的过程是在toStr和toFile方法里XML在转为文本的时候才定义编码
*
* @param rootElementName 根节点名称
* @return XML文档

View File

@ -421,7 +421,7 @@ public class DateUtilTest {
DateTime dt2 = DateUtil.parse(dateStr1);
Assert.assertEquals(dt, dt2);
// 默认使用Pattern对应的时区UTC时区
// 默认使用Pattern对应的时区UTC时区
String dateStr = dt.toString();
Assert.assertEquals("2018-09-13 05:34:31", dateStr);

View File

@ -191,15 +191,15 @@ public class ArrayUtilTest {
String[] result = ArrayUtil.insert(a, -1, b);
Assert.assertArrayEquals(new String[]{"1", "2", "3", "a", "b", "c", "4"}, result);
// 在第0个位置插入在数组前追加
// 在第0个位置插入在数组前追加
result = ArrayUtil.insert(a, 0, b);
Assert.assertArrayEquals(new String[]{"a", "b", "c", "1", "2", "3", "4"}, result);
// 在第2个位置插入"3"之前
// 在第2个位置插入"3"之前
result = ArrayUtil.insert(a, 2, b);
Assert.assertArrayEquals(new String[]{"1", "2", "a", "b", "c", "3", "4"}, result);
// 在第4个位置插入"4"之后相当于追加
// 在第4个位置插入"4"之后相当于追加
result = ArrayUtil.insert(a, 4, b);
Assert.assertArrayEquals(new String[]{"1", "2", "3", "4", "a", "b", "c"}, result);

View File

@ -74,7 +74,7 @@ import cn.hutool.cron.pattern.parser.YearValueParser;
* <li><strong>*&#47;2 * * * *</strong>每两小时执行</li>
* <li><strong>* 12 * * *</strong>12点的每分钟执行</li>
* <li><strong>59 11 * * 1,2</strong>每周一和周二的11:59执行</li>
* <li><strong>3-18&#47;5 * * * *</strong>3~18分每5分钟执行一次0:03, 0:08, 0:13, 0:18, 1:03, 1:08</li>
* <li><strong>3-18&#47;5 * * * *</strong>3~18分每5分钟执行一次0:03, 0:08, 0:13, 0:18, 1:03, 1:08</li>
* </ul>
*
* @author Looly

View File

@ -3,7 +3,7 @@ package cn.hutool.cron.task;
/**
* 定时作业接口通过实现execute方法执行具体的任务
* <p>
* 作业执行是异步执行不同作业相同作业在不同时间的执行是相互独立的<br>
* 作业执行是异步执行不同作业相同作业在不同时间的执行是相互独立的<br>
* 假如前一个作业未完成下一个调度开始则不会等待前一个作业直接执行<br>
* 关于作业的互斥请自行加锁完成
* </p>

View File

@ -16,7 +16,7 @@ public enum Padding {
*/
NoPadding,
/**
* 0补码不满block长度时使用0填充
* 0补码不满block长度时使用0填充
*/
ZeroPadding,
ISO10126Padding,

View File

@ -32,7 +32,7 @@ public class Digester implements Serializable {
private MessageDigest digest;
/** 盐值 */
protected byte[] salt;
/** 加盐位置,将盐值字符串放置在数据的index数默认0 */
/** 加盐位置,将盐值字符串放置在数据的index数默认0 */
protected int saltPosition;
/** 散列次数 */
protected int digestCount;
@ -120,7 +120,7 @@ public class Digester implements Serializable {
* data: 0123456
* </pre>
*
* 则当saltPosition = 2时盐位于data的1和2中间既第二个空隙
* 则当saltPosition = 2时盐位于data的1和2中间即第二个空隙
*
* <pre>
* data: 01[salt]23456

View File

@ -53,7 +53,7 @@ public class MD5 extends Digester {
* 构造
*
* @param salt 盐值
* @param saltPosition 加盐位置将盐值字符串放置在数据的index数默认0
* @param saltPosition 加盐位置将盐值字符串放置在数据的index数默认0
* @param digestCount 摘要次数当此值小于等于1,默认为1
*/
public MD5(byte[] salt, int saltPosition, int digestCount) {

View File

@ -51,7 +51,7 @@ public class SM3 extends Digester {
* 构造
*
* @param salt 盐值
* @param saltPosition 加盐位置将盐值字符串放置在数据的index数默认0
* @param saltPosition 加盐位置将盐值字符串放置在数据的index数默认0
* @param digestCount 摘要次数当此值小于等于1,默认为1
*/
public SM3(byte[] salt, int saltPosition, int digestCount) {

View File

@ -134,7 +134,7 @@ public class SymmetricCrypto implements Serializable {
*
* @param algorithm 算法
* @param key 密钥如果为<code>null</code>自动生成一个key
* @return {@link SymmetricCrypto}的子对象子对象自身
* @return {@link SymmetricCrypto}的子对象子对象自身
*/
public SymmetricCrypto init(String algorithm, SecretKey key) {
Assert.notBlank(algorithm, "'algorithm' must be not blank !");

View File

@ -151,7 +151,7 @@ public class HtmlUtil {
// (?i) 表示忽略大小写
// \s* 属性名前后的空白符去除
// [^>]+? 属性值至少有一个非>的字符>表示标签结束
// \s+(?=>) 表示属性值后跟空格加>末尾的属性此时去掉空格
// \s+(?=>) 表示属性值后跟空格加>末尾的属性此时去掉空格
// (?=\s|>) 表示属性值后跟空格属性后还有别的属性或者跟>最后一个属性
regex = StrUtil.format("(?i)(\\s*{}\\s*=[^>]+?\\s+(?=>))|(\\s*{}\\s*=[^>]+?(?=\\s|>))", attr, attr);
content = content.replaceAll(regex, StrUtil.EMPTY);

View File

@ -495,7 +495,7 @@ public class SoapClient {
}
/**
* 执行Webservice请求发送SOAP内容
* 执行Webservice请求发送SOAP内容
*
* @return 返回结果
*/
@ -517,7 +517,7 @@ public class SoapClient {
}
/**
* 执行Webservice请求发送SOAP内容
* 执行Webservice请求发送SOAP内容
*
* @return 返回结果
*/
@ -526,7 +526,7 @@ public class SoapClient {
}
/**
* 执行Webservice请求发送SOAP内容
* 执行Webservice请求发送SOAP内容
*
* @param pretty 是否格式化
* @return 返回结果

View File

@ -513,7 +513,7 @@ public class JSONArray extends JSONGetter<Integer> implements JSON, List<Object>
/**
* 转为JSON字符串指定缩进值
*
* @param indentFactor 缩进值缩进空格数
* @param indentFactor 缩进值缩进空格数
* @return JSON字符串
* @throws JSONException JSON写入异常
*/

View File

@ -28,7 +28,7 @@ public class LogTest {
}
/**
* 兼容slf4j日志消息格式测试第二个参数是异常对象时正常输出异常信息
* 兼容slf4j日志消息格式测试第二个参数是异常对象时正常输出异常信息
*/
@Test
@Ignore

View File

@ -141,8 +141,8 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 获取指定坐标单元格单元格不存在时返回<code>null</code>
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return {@link Cell}
* @since 4.0.5
*/
@ -153,8 +153,8 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 获取或创建指定坐标单元格
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return {@link Cell}
* @since 4.0.6
*/
@ -165,8 +165,8 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 获取指定坐标单元格如果isCreateIfNotExist为false则在单元格不存在时返回<code>null</code>
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param isCreateIfNotExist 单元格不存在时是否创建
* @return {@link Cell}
* @since 4.0.6
@ -182,7 +182,7 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 获取或者创建行
*
* @param y Y坐标从0计数行号
* @param y Y坐标从0计数行号
* @return {@link Row}
* @since 4.1.4
*/
@ -193,8 +193,8 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 为指定单元格获取或者创建样式返回样式后可以设置样式内容
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return {@link CellStyle}
* @since 4.1.4
*/
@ -206,8 +206,8 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 为指定单元格创建样式返回样式后可以设置样式内容
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return {@link CellStyle}
* @since 4.6.3
*/
@ -222,7 +222,7 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
* 获取或创建某一行的样式返回样式后可以设置样式内容<br>
* 需要注意此方法返回行样式设置背景色在单元格设置值后会被覆盖需要单独设置其单元格的样式
*
* @param y Y坐标从0计数行号
* @param y Y坐标从0计数行号
* @return {@link CellStyle}
* @since 4.1.4
*/
@ -234,7 +234,7 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 创建某一行的样式返回样式后可以设置样式内容
*
* @param y Y坐标从0计数行号
* @param y Y坐标从0计数行号
* @return {@link CellStyle}
* @since 4.6.3
*/
@ -248,7 +248,7 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
* 获取或创建某一行的样式返回样式后可以设置样式内容<br>
* 需要注意此方法返回行样式设置背景色在单元格设置值后会被覆盖需要单独设置其单元格的样式
*
* @param x X坐标从0计数列号
* @param x X坐标从0计数列号
* @return {@link CellStyle}
* @since 4.1.4
*/
@ -260,7 +260,7 @@ public class ExcelBase<T extends ExcelBase<T>> implements Closeable {
/**
* 创建某一行的样式返回样式后可以设置样式内容
*
* @param x X坐标从0计数列号
* @param x X坐标从0计数列号
* @return {@link CellStyle}
* @since 4.6.3
*/

View File

@ -405,8 +405,8 @@ public class ExcelReader extends ExcelBase<ExcelReader> {
/**
* 读取某个单元格的值
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return 如果单元格无值返回null
* @since 4.0.3
*/

View File

@ -678,9 +678,9 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
* data中元素支持的类型有
*
* <pre>
* 1. Iterable元素为一个集合元素被当作一行data表示多行<br>
* 2. Map元素为一个Map第一个Map的keys作为首行剩下的行为Map的valuesdata表示多行 <br>
* 3. Bean元素为一个Bean第一个Bean的字段名列表会作为首行剩下的行为Bean的字段值列表data表示多行 <br>
* 1. Iterable元素为一个集合元素被当作一行data表示多行<br>
* 2. Map元素为一个Map第一个Map的keys作为首行剩下的行为Map的valuesdata表示多行 <br>
* 3. Bean元素为一个Bean第一个Bean的字段名列表会作为首行剩下的行为Bean的字段值列表data表示多行 <br>
* 4. 其它类型按照基本类型输出例如字符串
* </pre>
*
@ -700,9 +700,9 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
* data中元素支持的类型有
*
* <pre>
* 1. Iterable元素为一个集合元素被当作一行data表示多行<br>
* 2. Map元素为一个Map第一个Map的keys作为首行剩下的行为Map的valuesdata表示多行 <br>
* 3. Bean元素为一个Bean第一个Bean的字段名列表会作为首行剩下的行为Bean的字段值列表data表示多行 <br>
* 1. Iterable元素为一个集合元素被当作一行data表示多行<br>
* 2. Map元素为一个Map第一个Map的keys作为首行剩下的行为Map的valuesdata表示多行 <br>
* 3. Bean元素为一个Bean第一个Bean的字段名列表会作为首行剩下的行为Bean的字段值列表data表示多行 <br>
* 4. 其它类型按照基本类型输出例如字符串
* </pre>
*
@ -729,8 +729,8 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
* data中元素支持的类型有
*
* <p>
* 1. Map元素为一个Map第一个Map的keys作为首行剩下的行为Map的valuesdata表示多行 <br>
* 2. Bean元素为一个Bean第一个Bean的字段名列表会作为首行剩下的行为Bean的字段值列表data表示多行 <br>
* 1. Map元素为一个Map第一个Map的keys作为首行剩下的行为Map的valuesdata表示多行 <br>
* 2. Bean元素为一个Bean第一个Bean的字段名列表会作为首行剩下的行为Bean的字段值列表data表示多行 <br>
* </p>
*
* @param data 数据
@ -857,8 +857,8 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
/**
* 给指定单元格赋值使用默认单元格样式
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param value
* @return this
* @since 4.0.2
@ -872,8 +872,8 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
/**
* 为指定单元格创建样式
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return {@link CellStyle}
* @since 4.0.9
* @deprecated 请使用{@link #createCellStyle(int, int)}
@ -894,8 +894,8 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
* <p>
* 需要注意的是共享样式会共享同一个{@link CellStyle}一个单元格样式改变全部改变
*
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @param x X坐标从0计数列号
* @param y Y坐标从0计数行号
* @return this
* @since 4.6.3
*/

View File

@ -57,7 +57,7 @@ public class BigExcelWriteTest {
// 通过工具类创建writer
BigExcelWriter writer = ExcelUtil.getBigWriter(filePath);
// // 跳过当前行第一行非必须在此演示用
// // 跳过当前行第一行非必须在此演示用
// writer.passCurrentRow();
// // 合并单元格后的标题行使用默认标题样式
// writer.merge(row1.size() - 1, "大数据测试标题");
@ -84,7 +84,7 @@ public class BigExcelWriteTest {
CellStyle style = writer.getStyleSet().getHeadCellStyle();
StyleUtil.setColor(style, IndexedColors.RED, FillPatternType.SOLID_FOREGROUND);
// 跳过当前行第一行非必须在此演示用
// 跳过当前行第一行非必须在此演示用
writer.passCurrentRow();
// 合并单元格后的标题行使用默认标题样式
writer.merge(row1.size() - 1, "测试标题");

View File

@ -79,7 +79,7 @@ public class ExcelWriteTest {
// 通过构造方法创建writer
// ExcelWriter writer = new ExcelWriter("d:/writeTest.xls");
// 跳过当前行第一行非必须在此演示用
// 跳过当前行第一行非必须在此演示用
writer.passCurrentRow();
// 合并单元格后的标题行使用默认标题样式
writer.merge(row1.size() - 1, "测试标题");
@ -106,7 +106,7 @@ public class ExcelWriteTest {
CellStyle style = writer.getStyleSet().getHeadCellStyle();
StyleUtil.setColor(style, IndexedColors.RED, FillPatternType.SOLID_FOREGROUND);
// 跳过当前行第一行非必须在此演示用
// 跳过当前行第一行非必须在此演示用
writer.passCurrentRow();
// 合并单元格后的标题行使用默认标题样式
writer.merge(row1.size() - 1, "测试标题");