@ThreadSafe public class Excel26Az extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull String |
index(int idx)
把索引(0-base)变成 AZ坐标
|
static int |
index(@NotNull String col)
把列标记[A...Z]变成索引(0-base)
|
static @NotNull String |
number(int num)
把数字(1-base)变成 AZ坐标
|
static int |
number(@NotNull String col)
把列标记[A...Z]变成数字(1-base)
ABZ = 1*26² + 2 * 26¹ + 26*26°= 676 + 52 + 26 = 754
|
static int |
title(Map<String,Integer> head,
Collection<String> rows,
String prefix)
使用一列变成title和index的对应关系
|
public static int number(@NotNull
@NotNull String col)
col - excel的坐标@NotNull public static @NotNull String number(int num)
num - 自然数,从1开始public static int index(@NotNull
@NotNull String col)
col - excel的坐标@NotNull public static @NotNull String index(int idx)
idx - 索引,从0开始Copyright © 2020. All rights reserved.