Class Index.Mutable.Builder<V>
java.lang.Object
org.eclipse.jetty.util.Index.Builder<V>
org.eclipse.jetty.util.Index.Mutable.Builder<V>
- Type Parameters:
V- the entry type
- Enclosing interface:
Index.Mutable<V>
Builder of
Index.Mutable instances. Such builder cannot be
directly created, it is instead returned by calling Index.Builder.mutable().-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aIndex.Mutableinstance.maxCapacity(int capacity) Configure a maximum capacity for the mutable index.mutable()Configure the index to be mutable.Methods inherited from class Index.Builder
caseSensitive, toString, with, with, withAll, withAll
-
Method Details
-
maxCapacity
Configure a maximum capacity for the mutable index. A negative value means there is no capacity limit and the index can grow without limits. The default value is -1.- Parameters:
capacity- the maximum capacity of the index.- Returns:
- this
-
mutable
Configure the index to be mutable.- Overrides:
mutablein classIndex.Builder<V>- Returns:
- a
Index.Mutable.Builderconfigured like this builder.
-
build
Build aIndex.Mutableinstance.- Overrides:
buildin classIndex.Builder<V>- Returns:
- a
Index.Mutableinstance.
-