Package org.eclipse.jetty.util
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.Mutable
instance.maxCapacity
(int capacity) Configure a maximum capacity for the mutable index.mutable()
Configure the index to be mutable.Methods inherited from class org.eclipse.jetty.util.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:
mutable
in classIndex.Builder<V>
- Returns:
- a
Index.Mutable.Builder
configured like this builder.
-
build
Build aIndex.Mutable
instance.- Overrides:
build
in classIndex.Builder<V>
- Returns:
- a
Index.Mutable
instance.
-