Package org.javlo.helper
Class StringRemplacementHelper
- java.lang.Object
-
- org.javlo.helper.StringRemplacementHelper
-
public class StringRemplacementHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description StringRemplacementHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReplacement(int sourceStart, int sourceEnd, String content)booleanaddReplacementIfPossible(int sourceStart, int sourceEnd, String content)add replacement only if there are no other replacementstatic voidmain(String[] args)Stringstart(String source)
-
-
-
Method Detail
-
addReplacementIfPossible
public boolean addReplacementIfPossible(int sourceStart, int sourceEnd, String content) throws InvalidParameterExceptionadd replacement only if there are no other replacement- Parameters:
sourceStart-sourceEnd-content-- Returns:
- true if replacement done.
- Throws:
InvalidParameterException
-
addReplacement
public void addReplacement(int sourceStart, int sourceEnd, String content) throws InvalidParameterException- Throws:
InvalidParameterException
-
main
public static void main(String[] args)
-
-