public class StringSetTrie extends Object
String
s
efficiently.Constructor and Description |
---|
StringSetTrie()
Create with no elements.
|
StringSetTrie(Collection<String> collection)
Create from existing collection.
|
StringSetTrie(java.util.stream.Stream<String> stream)
Create from existing collection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String stringToAdd)
Adds an string to the set.
|
boolean |
contains(String string)
Does the set contain a particular string?
|
boolean |
isEmpty()
Does the set contain no elements?
|
Set<String> |
values()
A view over the values in the set.
|
public StringSetTrie()
public StringSetTrie(Collection<String> collection)
collection
- the collection to create from.public StringSetTrie(java.util.stream.Stream<String> stream)
stream
- the stream to create from.public void add(String stringToAdd)
stringToAdd
- the string to add.public boolean contains(String string)
string
- the string to check.public boolean isEmpty()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.