Constructor and Description |
---|
StringList(String... tokens)
Initializes the current instance.
|
StringList(String singleToken)
Initializes the current instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareToIgnoreCase(StringList tokens)
Compares to tokens list and ignores the case of the tokens.
|
boolean |
equals(Object obj) |
String |
getToken(int index)
Retrieves a token from the given index.
|
int |
hashCode() |
Iterator<String> |
iterator()
Retrieves an
Iterator over all tokens. |
int |
size()
Retrieves the number of tokens inside this list.
|
String |
toString() |
forEach, spliterator
public StringList(String singleToken)
singleToken
- one single tokenpublic StringList(String... tokens)
tokens
- the string parts of the new StringList
, an empty
tokens array or null is not permitted.public String getToken(int index)
index
- public int size()
public boolean compareToIgnoreCase(StringList tokens)
tokens
- Copyright © 2021 The Apache Software Foundation. All rights reserved.