mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -31,6 +31,7 @@ public enum ScaleType {
|
||||
*/
|
||||
AREA_AVERAGING(Image.SCALE_AREA_AVERAGING);
|
||||
|
||||
private final int value;
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
@@ -45,8 +46,6 @@ public enum ScaleType {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* 获取值
|
||||
*
|
||||
|
@@ -10,8 +10,15 @@ import java.util.LinkedHashMap;
|
||||
* @author Tom Xin
|
||||
*/
|
||||
public class Ansi4bitMapping extends AnsiLabMapping {
|
||||
|
||||
/**
|
||||
* 单例
|
||||
*/
|
||||
public static final Ansi4bitMapping INSTANCE = new Ansi4bitMapping();
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*/
|
||||
public Ansi4bitMapping() {
|
||||
ansiLabMap = new LinkedHashMap<>(16, 1);
|
||||
ansiLabMap.put(Ansi4BitColor.BLACK, new LabColor(0x000000));
|
||||
|
@@ -38,8 +38,14 @@ public class Ansi8bitMapping extends AnsiLabMapping {
|
||||
0x808080, 0x8a8a8a, 0x949494, 0x9e9e9e, 0xa8a8a8, 0xb2b2b2, 0xbcbcbc, 0xc6c6c6, 0xd0d0d0, 0xdadada,
|
||||
0xe4e4e4, 0xeeeeee };
|
||||
|
||||
/**
|
||||
* 单例
|
||||
*/
|
||||
public static final Ansi8bitMapping INSTANCE = new Ansi8bitMapping();
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*/
|
||||
public Ansi8bitMapping() {
|
||||
ansiLabMap = new LinkedHashMap<>(256, 1);
|
||||
for (int i = 0; i < ANSI_8BIT_COLOR_CODE_LOOKUP.length; i++) {
|
||||
|
Reference in New Issue
Block a user