- 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.Mutable
instances. 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.Mutable
instance.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:
mutable
in classIndex.Builder<V>
- Returns:
- a
Index.Mutable.Builder
configured like this builder.
-
build
public Index.Mutable<V> build()
Build aIndex.Mutable
instance.- Overrides:
build
in classIndex.Builder<V>
- Returns:
- a
Index.Mutable
instance.
-
-