private static final class MailHandler.TailNameFormatter
extends java.util.logging.Formatter
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The value used as the output.
|
| Modifier | Constructor and Description |
|---|---|
private |
TailNameFormatter(java.lang.String name)
Use the factory method instead of this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Equals method.
|
java.lang.String |
format(java.util.logging.LogRecord record) |
java.lang.String |
getTail(java.util.logging.Handler h) |
int |
hashCode()
Hash code method.
|
(package private) static java.util.logging.Formatter |
of(java.lang.String name)
Creates or gets a formatter from the given name.
|
java.lang.String |
toString() |
private TailNameFormatter(java.lang.String name)
name - any not null string.static java.util.logging.Formatter of(java.lang.String name)
name - any not null string.public final java.lang.String format(java.util.logging.LogRecord record)
format in class java.util.logging.Formatterpublic final java.lang.String getTail(java.util.logging.Handler h)
getTail in class java.util.logging.Formatterpublic final boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the other object.public final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object