E - type set elements.public interface SetBuilder<E>
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
build()
Builds an set based on the configuration options
supplied to this builder.
|
SetBuilder<E> |
withName(String name)
Sets the name of the set.
|
SetBuilder<E> |
withSerializer(Serializer serializer)
Sets a serializer that can be used to serialize
the elements add to the set.
|
SetBuilder<E> |
withUpdatesDisabled()
Disables set updates.
|
SetBuilder<E> withName(String name)
Each set is identified by a unique name.
Note: This is a mandatory parameter.
name - name of the setSetBuilder<E> withSerializer(Serializer serializer)
Note: This is a mandatory parameter.
serializer - serializerSetBuilder<E> withUpdatesDisabled()
Attempt to update the built set will throw UnsupportedOperationException.
Set<E> build()
RuntimeException - if a mandatory parameter is missingCopyright © 2015. All rights reserved.