|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Formatter
com.mcdermottroe.exemplar.ui.cli.ConsoleFormatter
public class ConsoleFormatter
A Formatter for messages which are output to the console.
| Constructor Summary | |
|---|---|
ConsoleFormatter()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ConsoleFormatter other)
Implement Comparable.compareTo(Object). |
boolean |
equals(Object o)
|
String |
format(LogRecord record)
Format a log record so that it can be sent to the console. |
ConsoleFormatter |
getCopy()
Creates a deep copy of the current object and returns it. |
int |
hashCode()
|
| Methods inherited from class java.util.logging.Formatter |
|---|
formatMessage, getHead, getTail |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleFormatter()
| Method Detail |
|---|
public String format(LogRecord record)
format in class Formatterrecord - The LogRecord to format for the console.
String suitable for the console.public int compareTo(ConsoleFormatter other)
Comparable.compareTo(Object).
compareTo in interface Comparable<ConsoleFormatter>other - The ConsoleFormatter to compare with.
Comparable.compareTo(Object).public ConsoleFormatter getCopy()
getCopy in interface Copyable<ConsoleFormatter>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||