Class StringTools
java.lang.Object
com.expedient.adventofcodejade.util.StringTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchergetMatcher(String s, String regexPattern) Convenience method to quickly get a regex Matcher for a given String and patternstatic booleanisInString(Character c, String charList) Convenience method to quickly determine whether a given character is one of many characterstatic Character[]Converts a given string to Character[]static StringtoHex(byte[] bytes)
-
Constructor Details
-
StringTools
public StringTools()
-
-
Method Details
-
ToCharacterArray
-
getMatcher
-
isInString
Convenience method to quickly determine whether a given character is one of many character- Parameters:
c- the given charactercharList- set of characters to check against- Returns:
- whether the character is in the string listing different chars
-
toHex
-