| Constructor and Description |
|---|
SimplePrefix(String prefix) |
SimplePrefix(String prefix,
String separator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStarting(String string,
boolean caseSensitive)
Checks whether the string parameter starts with the prefix.
|
String |
prepend(String string)
Prepends that prefix to the given String
|
public SimplePrefix(String prefix)
public String prepend(String string)
Prefixpublic boolean isStarting(String string, boolean caseSensitive)
null safe and will return
false if the string parameter is null.
When checking case insensitively, the default locale will be used to lower case both the prefix and the
string parameter before comparing.isStarting in interface Prefixstring - checks whether this starts the StringcaseSensitive - whether or not we're case sensitivetrue of string starts with the prefixCopyright © 2018 Atlassian. All rights reserved.