public final class Ansi8BitColor extends java.lang.Object implements AnsiElement
AnsiElement
implementation for ANSI 8-bit foreground or background color codes.foreground(int)
,
background(int)
Modifier and Type | Method and Description |
---|---|
static Ansi8BitColor |
background(int code)
Return a background ANSI color code instance for the given code.
|
boolean |
equals(java.lang.Object obj) |
static Ansi8BitColor |
foreground(int code)
Return a foreground ANSI color code instance for the given code.
|
int |
hashCode() |
java.lang.String |
toString() |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface AnsiElement
toString
in class java.lang.Object
public static Ansi8BitColor foreground(int code)
code
- the color codepublic static Ansi8BitColor background(int code)
code
- the color code