Package com.powsybl.commons.util
Class StringToIntMapper<S extends Enum<S> & IntCounter>
- java.lang.Object
-
- com.powsybl.commons.util.StringToIntMapper<S>
-
public class StringToIntMapper<S extends Enum<S> & IntCounter> extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description StringToIntMapper(Class<S> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(Writer writer)
void
dump(Path file)
String
getId(S subset, int num)
int
getInt(S subset, String id)
boolean
isMapped(S subset, String id)
boolean
isModified()
void
load(BufferedReader reader)
void
load(Path file)
int
newInt(S subset, String id)
void
reset(S subset)
-
-
-
Method Detail
-
isModified
public boolean isModified()
-
dump
public void dump(Writer writer) throws IOException
- Throws:
IOException
-
dump
public void dump(Path file) throws IOException
- Throws:
IOException
-
load
public void load(BufferedReader reader) throws IOException
- Throws:
IOException
-
load
public void load(Path file) throws IOException
- Throws:
IOException
-
reset
public void reset(S subset)
-
-