Package repast.simphony.parameter
Class StringConverterFactory.StringStringConverter
- java.lang.Object
-
- repast.simphony.parameter.StringConverterFactory.StringStringConverter
-
- All Implemented Interfaces:
StringConverter
- Enclosing class:
- StringConverterFactory
public static class StringConverterFactory.StringStringConverter extends Object implements StringConverter
-
-
Constructor Summary
Constructors Constructor Description StringStringConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
fromString(String strRep)
Creates an Object from a String representation.String
toString(Object obj)
Converts the specified object to a String representation and returns that representation.
-
-
-
Method Detail
-
toString
public String toString(Object obj)
Description copied from interface:StringConverter
Converts the specified object to a String representation and returns that representation. The represenation should be such thatfromString
can recreate the Object.- Specified by:
toString
in interfaceStringConverter
- Parameters:
obj
- the Object to convert.- Returns:
- a String representation of the Object.
-
fromString
public Object fromString(String strRep)
Description copied from interface:StringConverter
Creates an Object from a String representation.- Specified by:
fromString
in interfaceStringConverter
- Parameters:
strRep
- the string representation- Returns:
- the created Object.
-
-