public final class ReplacePattern extends Object
Modifier and Type | Method and Description |
---|---|
ReplacePattern |
changePreserveCase(boolean preserveCase)
Create new instance with "preserve case" set to passed value, and other
values copied from this instance.
|
ReplacePattern |
changeReplaceExpression(String expression)
Create new instance with "replace expression" set to passed value, and
other values copied from this instance.
|
static ReplacePattern |
create(String replaceExpression,
boolean preserveCase)
Creates a new ReplacePattern in accordance with given parameters
|
boolean |
equals(Object obj) |
String |
getReplaceExpression() |
int |
hashCode() |
boolean |
isPreserveCase() |
public static ReplacePattern create(String replaceExpression, boolean preserveCase)
replaceExpression
- non-null String of a replace expressionpreserveCase
- if true, the case of original text will be preservedpublic String getReplaceExpression()
public boolean isPreserveCase()
public ReplacePattern changeReplaceExpression(String expression)
public ReplacePattern changePreserveCase(boolean preserveCase)