public static final class StringTemplate.FormatSpec extends Object
Constructor and Description |
---|
FormatSpec(StringTemplate.Format format,
String string)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
StringTemplate.Format |
getFormat()
Returns the format kind.
|
String |
getString()
Returns the format string.
|
int |
hashCode() |
com.asakusafw.runtime.stage.directio.StringTemplate.PropertyFormatter |
newFormatter()
Creates a new formatter from this spec.
|
String |
toString() |
public FormatSpec(StringTemplate.Format format, String string)
format
- format kindstring
- format string (nullable)IllegalArgumentException
- if some parameters were null
public StringTemplate.Format getFormat()
public String getString()
null
if not specifiedpublic com.asakusafw.runtime.stage.directio.StringTemplate.PropertyFormatter newFormatter()
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.