public class Words
Constructor and Description |
---|
Words() |
Words(int initialCapacity) |
Words(java.util.Collection<? extends java.lang.String> c) |
Words(int size,
Function1<? super java.lang.Integer,java.lang.String> init) |
Modifier and Type | Method and Description |
---|---|
Words |
copyInLowerCase() |
Words |
copyInUpperCase() |
NonExistentClass |
countNumberOfCharacters() |
NonExistentClass |
joined(java.lang.String separator) |
java.util.List<java.lang.String> |
joined(int numberOfLines)
Joins a list of words into the given number of strings with a space between each word.
E.g.
["this", "is", "a", "simple", "example"] with numberOfLines set to 2 returns
["this is a", "simple example"] . |
void |
splitIntoWords(java.lang.String text) |
public Words()
public Words(int initialCapacity)
public Words(java.util.Collection<? extends java.lang.String> c)
public Words(int size, Function1<? super java.lang.Integer,java.lang.String> init)
public void splitIntoWords(java.lang.String text)
public NonExistentClass countNumberOfCharacters()
public NonExistentClass joined(java.lang.String separator)
public java.util.List<java.lang.String> joined(int numberOfLines)
Joins a list of words into the given number of strings with a space between each word.
E.g. ["this", "is", "a", "simple", "example"]
with numberOfLines
set to 2
returns
["this is a", "simple example"]
.
numberOfLines
- : The number of strings to return must be at minimum 1public Words copyInLowerCase()
public Words copyInUpperCase()