enum SimpleFormatter extends java.lang.Enum<SimpleFormatter> implements Formatter
Formatter
implementation to provide a simple, one-line description of an Archive
, including its nameEnum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ASSETS
String used to denote assets in the formatted message
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(Archive<?> archive)
Returns a formatted view of the specified archive
|
private int |
getNumAssets(Archive<?> archive)
Returns the number of assets on an
Archive . |
static SimpleFormatter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SimpleFormatter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleFormatter INSTANCE
private static final java.lang.String ASSETS
public static SimpleFormatter[] values()
for (SimpleFormatter c : SimpleFormatter.values()) System.out.println(c);
public static SimpleFormatter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String format(Archive<?> archive) throws java.lang.IllegalArgumentException
Formatter