Package org.sosy_lab.common.io
Class PathCounterTemplate
- java.lang.Object
-
- org.sosy_lab.common.io.PathCounterTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PathgetFreshPath()Construct a concretePaththat was not handed out by this instance before.StringgetTemplate()Returns the raw template of this instance.static PathCounterTemplateofFormatString(String pTemplate)Create a new instance.StringtoString()
-
-
-
Method Detail
-
ofFormatString
public static PathCounterTemplate ofFormatString(String pTemplate)
Create a new instance.- Parameters:
pTemplate- A non-null non-empty template String in the format forString.format(String, Object...)that is suited for exactly one argument of type int.- Throws:
IllegalFormatException- If the template is invalid.
-
getFreshPath
public Path getFreshPath()
Construct a concretePaththat was not handed out by this instance before.- Throws:
IllegalFormatException- If the template is invalid, or the arguments does not match the template.
-
getTemplate
public String getTemplate()
Returns the raw template of this instance.
-
-