Package org.opennms.core.utils
Class ReplaceFirstOperation
- java.lang.Object
-
- org.opennms.core.utils.StringReplaceOperation
-
- org.opennms.core.utils.ReplaceFirstOperation
-
public class ReplaceFirstOperation extends StringReplaceOperation
ReplaceFirstOperation class.
-
-
Field Summary
-
Fields inherited from class org.opennms.core.utils.StringReplaceOperation
m_pattern, m_replacement
-
-
Constructor Summary
Constructors Constructor Description ReplaceFirstOperation(java.lang.String spec)
Constructor for ReplaceFirstOperation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
replace(java.lang.String input)
replace-
Methods inherited from class org.opennms.core.utils.StringReplaceOperation
getPattern, getReplacement, toString
-
-
-
-
Method Detail
-
replace
public java.lang.String replace(java.lang.String input)
replace
- Specified by:
replace
in classStringReplaceOperation
- Parameters:
input
- aString
object.- Returns:
- a
String
object.
-
-