Skip to content

Commit

Permalink
Merge pull request #64 from Evolveum/polystring-helper
Browse files Browse the repository at this point in the history
New helper functions: PolyString, normalization and prefix comparisons
  • Loading branch information
semancik committed Feb 14, 2018
2 parents 3a31318 + 7ed760c commit dab8050
Show file tree
Hide file tree
Showing 2 changed files with 889 additions and 807 deletions.
Expand Up @@ -163,6 +163,26 @@ public String substring(int from, int to) {
return this.orig.substring(from,to);
}

/**
* Helper function that checks whether this original string begins with the specified value.
*
* @param value the value
* @return the string
*/
public boolean startsWith(String value) {
return this.orig.startsWith(value);
}

/**
* Helper function that checks whether this original string ends with the specified value.
*
* @param value the value
* @return the string
*/
public boolean endsWith(String value) {
return this.orig.endsWith(value);
}

@Override
public int hashCode() {
final int prime = 31;
Expand Down

0 comments on commit dab8050

Please sign in to comment.