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 void
addReplacement(int sourceStart, int sourceEnd, String content)
boolean
addReplacementIfPossible(int sourceStart, int sourceEnd, String content)
add replacement only if there are no other replacementstatic void
main(String[] args)
String
start(String source)
-
-
-
Method Detail
-
addReplacementIfPossible
public boolean addReplacementIfPossible(int sourceStart, int sourceEnd, String content) throws InvalidParameterException
add 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)
-
-