- 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>
public static class Index.Mutable.Builder<V> extends Index.Builder<V>
Builder ofIndex.Mutableinstances. Such builder cannot be directly created, it is instead returned by callingIndex.Builder.mutable().
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Index.Mutable<V>build()Build aIndex.Mutableinstance.Index.Mutable.Builder<V>maxCapacity(int capacity)Configure a maximum capacity for the mutable index.Index.Mutable.Builder<V>mutable()Configure the index to be mutable.-
Methods inherited from class org.eclipse.jetty.util.Index.Builder
caseSensitive, toString, with, with, withAll, withAll
-
-
-
-
Method Detail
-
maxCapacity
public Index.Mutable.Builder<V> maxCapacity(int capacity)
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
public Index.Mutable.Builder<V> mutable()
Configure the index to be mutable.- Overrides:
mutablein classIndex.Builder<V>- Returns:
- a
Index.Mutable.Builderconfigured like this builder.
-
build
public Index.Mutable<V> build()
Build aIndex.Mutableinstance.- Overrides:
buildin classIndex.Builder<V>- Returns:
- a
Index.Mutableinstance.
-
-