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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface AnsiElementtoString in class java.lang.Objectpublic static Ansi8BitColor foreground(int code)
code - the color codepublic static Ansi8BitColor background(int code)
code - the color code