V
- The value type. Should match value type of the
ConcurrentIndex instances of this object are passed to.private static class ConcurrentIndex.DefaultValueSetFactory<V> extends Object implements com.google.common.base.Supplier<Set<V>>
ConcurrentSkipListSet
using the comparator passed into the
constructor.ConcurrentSkipListSet
,
Supplier
Modifier and Type | Field and Description |
---|---|
private Comparator<V> |
comparator |
Constructor and Description |
---|
ConcurrentIndex.DefaultValueSetFactory(Comparator<V> comparator)
Creates an instance that passes a specified comparator to the
ConcurrentSkipListSet |
Modifier and Type | Method and Description |
---|---|
Set<V> |
get()
Creates a new
ConcurrentSkipListSet instance using the
comparator specified when the class instance was constructed. |
private final Comparator<V> comparator
public ConcurrentIndex.DefaultValueSetFactory(Comparator<V> comparator)
ConcurrentSkipListSet
comparator
- The specified comparatorpublic Set<V> get()
ConcurrentSkipListSet
instance using the
comparator specified when the class instance was constructed.get
in interface com.google.common.base.Supplier<Set<V>>
ConcurrentSkipListSet
objectCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.