
com.magictools.core.lang.ansi.AnsiStyle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magic-tools-all Show documentation
Show all versions of magic-tools-all Show documentation
magic-tools 是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。
The newest version!
package com.magictools.core.lang.ansi;
/**
* ANSI文本样式风格枚举
*
* 来自Spring Boot
*
* @author Phillip Webb
* @since 5.8.0
*/
public enum AnsiStyle implements AnsiElement {
/**
* 重置/正常
*/
NORMAL("0"),
/**
* 粗体或增加强度
*/
BOLD("1"),
/**
* 弱化(降低强度)
*/
FAINT("2"),
/**
* 斜体
*/
ITALIC("3"),
/**
* 下划线
*/
UNDERLINE("4");
private final String code;
AnsiStyle(String code) {
this.code = code;
}
@Override
public String toString() {
return this.code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy