public static class QueryElevationComponent.TrieSubsetMatcher.Builder<E extends Comparable<? super E>,M> extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
QueryElevationComponent.TrieSubsetMatcher.Builder<E,M> |
addSubset(Collection<E> subset,
M matchValue)
Adds a subset.
|
QueryElevationComponent.TrieSubsetMatcher<E,M> |
build() |
public QueryElevationComponent.TrieSubsetMatcher.Builder<E,M> addSubset(Collection<E> subset, M matchValue)
subset
- The subset of Comparable
elements; it is copied. It is ignored if its size is 0
.
Any subset added is guaranteed to be returned by QueryElevationComponent.TrieSubsetMatcher.findSubsetsMatching(java.util.Collection<E>)
if it matches (i.e. is contained), even if two or more subsets are equal, or equal when ignoring
duplicate elements.matchValue
- The match value provided each time the subset matches.public QueryElevationComponent.TrieSubsetMatcher<E,M> build()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.