| Constructor and Description |
|---|
MapList.Builder()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
MapList<E,K> |
build()
Build MapList with specified options.
|
MapList.Builder<E,K> |
withAttachHandler(org.magicwerk.brownies.collections.KeyList.Handler<E> handler) |
MapList.Builder<E,K> |
withComparator(java.util.Comparator<K> comparator) |
MapList.Builder<E,K> |
withComparator(java.util.Comparator<K> comparator,
boolean comparatorSortsNull) |
MapList.Builder<E,K> |
withDetachHandler(org.magicwerk.brownies.collections.KeyList.Handler<E> handler) |
MapList.Builder<E,K> |
withDuplicates(org.magicwerk.brownies.collections.KeyList.DuplicateMode duplicateMode) |
MapList.Builder<E,K> |
withMapper(Mapper<E,K> mapper)
Note that a mapper must be set to construct a MapList.
|
MapList.Builder<E,K> |
withNullElem()
Determines that null elements are allowed.
|
MapList.Builder<E,K> |
withNullElem(boolean nullElem)
Determines whether null elements are allowed or not.
|
MapList.Builder<E,K> |
withNullKey() |
MapList.Builder<E,K> |
withNullKey(boolean nullKey)
Determines whether null keys are allowed or not.
|
MapList.Builder<E,K> |
withNullsFirst()
Nulls will be sorted first.
|
MapList.Builder<E,K> |
withNullsFirst(boolean nullsFirst)
Specifies whether nulls will be sorted first.
|
MapList.Builder<E,K> |
withSort() |
MapList.Builder<E,K> |
withSort(boolean sort) |
public MapList.Builder<E,K> withMapper(Mapper<E,K> mapper)
mapper - mapper to use for MapListpublic MapList.Builder<E,K> withNullElem()
public MapList.Builder<E,K> withNullElem(boolean nullElem)
nullElem - true to allow null elements, false otherwisepublic MapList.Builder<E,K> withNullKey()
public MapList.Builder<E,K> withNullKey(boolean nullKey)
nullKey - true to allow null keys, false otherwisepublic MapList.Builder<E,K> withDuplicates(org.magicwerk.brownies.collections.KeyList.DuplicateMode duplicateMode)
duplicateMode - duplicate modepublic MapList.Builder<E,K> withSort()
public MapList.Builder<E,K> withSort(boolean sort)
sort - true to sort listpublic MapList.Builder<E,K> withComparator(java.util.Comparator<K> comparator)
comparator - comparatorpublic MapList.Builder<E,K> withComparator(java.util.Comparator<K> comparator, boolean comparatorSortsNull)
comparator - comparatorcomparatorSortsNull - true if comparator also sorts null valuespublic MapList.Builder<E,K> withNullsFirst()
public MapList.Builder<E,K> withNullsFirst(boolean nullsFirst)
nullsFirst - true to sort nulls firstpublic MapList.Builder<E,K> withAttachHandler(org.magicwerk.brownies.collections.KeyList.Handler<E> handler)
public MapList.Builder<E,K> withDetachHandler(org.magicwerk.brownies.collections.KeyList.Handler<E> handler)