public class Sprint extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
useCache
Flag value to decide to use cache or not.
|
| Constructor and Description |
|---|
Sprint() |
| Modifier and Type | Method and Description |
|---|---|
String |
ff(String template,
Object... args)
Format and build string according to template.
|
public String ff(String template, Object... args)
Template might be contain "{}" as placeholder. This method fills given arguments to these placeholders.
example:
sprint.ff("Hello: {}!", "John"); // => "Hello: John!"
template - template string to build (e.g. "msg: {}")args - arguments to fill to placeholders of templateCopyright © 2021. All rights reserved.