public static class CharacterEscapesJsonFactoryDecorator.Escape extends Object implements Comparable<CharacterEscapesJsonFactoryDecorator.Escape>
Constructor and Description |
---|
Escape() |
Escape(char targetCharacter,
String escapeSequence) |
Escape(int targetCharacterCode,
String escapeSequence) |
Escape(String target,
String escapeSequence) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CharacterEscapesJsonFactoryDecorator.Escape that) |
boolean |
equals(Object o) |
SerializedString |
getEscapeSequence() |
int |
getTargetCharacterCode() |
int |
hashCode() |
void |
setEscapeSequence(String escapeSequence) |
void |
setTarget(String target)
Sets the target string that will be replaced with the
escapeSequence . |
void |
setTargetCharacter(char targetCharacter)
Sets the target character that will be replaced with the
escapeSequence . |
void |
setTargetCharacterCode(int targetCharacterCode) |
public Escape()
public Escape(int targetCharacterCode, String escapeSequence)
public Escape(char targetCharacter, String escapeSequence)
public void setTarget(String target)
escapeSequence
. Must have length == 1target
- the target string that will be escapedIllegalArgumentException
- if target length is != 1public void setTargetCharacter(char targetCharacter)
escapeSequence
.public int getTargetCharacterCode()
public void setTargetCharacterCode(int targetCharacterCode)
public SerializedString getEscapeSequence()
public void setEscapeSequence(String escapeSequence)
public int compareTo(CharacterEscapesJsonFactoryDecorator.Escape that)
compareTo
in interface Comparable<CharacterEscapesJsonFactoryDecorator.Escape>
Copyright © 2020. All rights reserved.