Class Index.Builder<V>
java.lang.Object
org.eclipse.jetty.util.Index.Builder<V>
- Type Parameters:
V- the entry type
- Direct Known Subclasses:
Index.Mutable.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aIndexinstance.caseSensitive(boolean caseSensitive) Configure the index to be either case-sensitive or not.mutable()Configure the index to be mutable.toString()Configure a pre-existing entry.Configure a pre-existing entry with a key that is thetoString()representation of the value.Configure some pre-existing entries.Configure some pre-existing entries.
-
Constructor Details
-
Builder
public Builder()Create a new index builder instance.
-
-
Method Details
-
caseSensitive
Configure the index to be either case-sensitive or not. Default value is false.- Parameters:
caseSensitive- true if the index has to be case-sensitive- Returns:
- this
-
withAll
-
withAll
-
with
Configure a pre-existing entry with a key that is thetoString()representation of the value.- Parameters:
value- The value- Returns:
- this
-
with
Configure a pre-existing entry.- Parameters:
key- The keyvalue- The value for the key string- Returns:
- this
-
mutable
Configure the index to be mutable.- Returns:
- a
Index.Mutable.Builderconfigured like this builder.
-
build
-
toString
-