/** 
* 获取忽略部分字符的 X 进制的值
* 从 0-9 和 A-Z 中忽略
* @param number
* @param ignoreStr
* @return
*/
public static String getValueByIndexWithOut(int number, String... ignoreStr) {
List<String> decimalList = new ArrayList();
for (String n : DecimalUtil.NUMBERS) {
decimalList.add(n);
}
for (String s : DecimalUtil.LETTERS) {
decimalList.add(s);
}
for (String s : ignoreStr) {
decimalList.remove(s.toUpperCase());
}
if (number > decimalList.size()) {
throw new WmsException("参数 number %s 超过范围", number);
}
//取索引-1
return decimalList.get(number - 1);
}



public static int getIndexByValueWithOut(String value, String... ignoreStr) {
int index_ = 0;
Map<Integer, String> map = new HashMap();
List<String> decimalList = new ArrayList();
for (String n : DecimalUtil.NUMBERS) {
decimalList.add(n);
}
for (String s : DecimalUtil.LETTERS) {
decimalList.add(s);
}
for (String s : ignoreStr) {
decimalList.remove(s.toUpperCase());
}
ListUtil.forEach(decimalList, (index, str) -> {
if (value.equals(str)) {
map.put(index, str);
}
});
for (Map.Entry<Integer, String> entry : map.entrySet()) {
index_ = entry.getKey();
}
return index_+1;
}


public static <E> void forEach(
Iterable<? extends E> elements, BiConsumer<Integer, ? super E> action) {
Objects.requireNonNull(elements);
Objects.requireNonNull(action);

int index = 0;
for (E element : elements) {
action.accept(index++, element);
}
}