Skip to content

Commit

Permalink
Adding helper functions around polystrings and normalization to compa…
Browse files Browse the repository at this point in the history
…re prefixes
  • Loading branch information
SavvasMisaghMoayyed committed Feb 13, 2018
1 parent 4d37546 commit 7ed760c
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 7ed760c

Please sign in to comment.