java.lang.Object
io.github.astrapi69.string.SplitStringExtensions
-
Method Summary
Modifier and TypeMethodDescriptiongetTripleFromMessage
(String message) Splits the given message string into three parts and put them into aTriple
objectsplitToWordsAndCount
(String input) Splits the given input string into words and puts them to a counter mapsplitToWordsAndCount
(String input, String regex) Splits the given input string into words and puts them to a counter mapsplitToWordsAndCount
(String input, String[] findString) Splits the given input string into words and puts them to a counter map
-
Method Details
-
splitToWordsAndCount
Splits the given input string into words and puts them to a counter map- Parameters:
input
- The input string- Returns:
- The map with the words and the count
-
splitToWordsAndCount
Splits the given input string into words and puts them to a counter map- Parameters:
input
- The input stringfindString
- An array with search patterns.- Returns:
- The map with the words and the count
-
splitToWordsAndCount
Splits the given input string into words and puts them to a counter map- Parameters:
input
- The input stringregex
- The regex string that is used for splitting- Returns:
- The map with the words and the count
-
getTripleFromMessage
public static org.apache.commons.lang3.tuple.Triple<String,String, getTripleFromMessageString> (String message) Splits the given message string into three parts and put them into aTriple
object- Parameters:
message
- The message string- Returns:
- The splitted message in a
Triple
object
-