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.
|
Constructor and Description |
---|
TailNameFormatter(java.lang.String name)
Creates the formatter with the given name.
|
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.
|
java.lang.String |
toString() |
TailNameFormatter(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.Formatter
public final java.lang.String getTail(java.util.logging.Handler h)
getTail
in class java.util.logging.Formatter
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other object.public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object