T
- the element typepublic static class VolatileLookUpTable.Builder<T> extends Object implements LookUpTable.Builder<T>
VolatileLookUpTable
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
void |
add(LookUpKey key,
T value)
Puts a key and value pair.
|
LookUpTable<T> |
build()
Returns a
LookUpTable from previously added key value pairs. |
public void add(LookUpKey key, T value) throws IOException
LookUpTable.Builder
add
in interface LookUpTable.Builder<T>
key
- the keyvalue
- the valueIOException
- if error occurred while adding the key value pairpublic LookUpTable<T> build() throws IOException
LookUpTable.Builder
LookUpTable
from previously added key value pairs.build
in interface LookUpTable.Builder<T>
IOException
- if error occurred while building the tableCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.