Uses of Class
org.magicwerk.brownies.collections.Key2Set.Builder
Packages that use Key2Set.Builder
Package
Description
Brownies Collections complements the Java Collections Framework.
-
Uses of Key2Set.Builder in org.magicwerk.brownies.collections
Methods in org.magicwerk.brownies.collections that return Key2Set.BuilderModifier and TypeMethodDescriptionprotected Key2Set.Builder<E, K1, K2> Key2Set.getBuilder()Key2Set.Builder.withAfterDeleteTrigger(Consumer<E> trigger) Key2Set.Builder.withAfterInsertTrigger(Consumer<E> trigger) Key2Set.Builder.withBeforeDeleteTrigger(Consumer<E> trigger) Key2Set.Builder.withBeforeInsertTrigger(Consumer<E> trigger) Key2Set.Builder.withCapacity(int capacity) Key2Set.Builder.withConstraint(Predicate<E> constraint) Key2Set.Builder.withContent(E... elements) Key2Set.Builder.withContent(Collection<? extends E> elements) Key2Set.Builder.withElemCount(boolean count) Key2Set.Builder.withElemDuplicates(boolean allowDuplicates) Specify whether duplicates are allowed or not.Key2Set.Builder.withElemDuplicates(boolean allowDuplicates, boolean allowDuplicatesNull) Specify whether duplicates are allowed or not.Key2Set.Builder.withElemNull(boolean allowNull) Key2Set.Builder.withElemSet()Add element map (with ident mapper).Key2Set.Builder.withElemSort(boolean sort) Key2Set.Builder.withElemSort(Comparator<? super E> comparator) Key2Set.Builder.withElemSort(Comparator<? super E> comparator, boolean sortNullsFirst) Key2Set.Builder.withKey1Duplicates(boolean allowDuplicates) Key2Set.Builder.withKey1Duplicates(boolean allowDuplicates, boolean allowDuplicatesNull) Key2Set.Builder.withKey1Map(Function<? super E, K1> mapper) Add key map.Key2Set.Builder.withKey1Null(boolean allowNull) Key2Set.Builder.withKey1Sort(boolean sort) Key2Set.Builder.withKey1Sort(Comparator<? super K1> comparator) Set comparator to use for sorting the key map.Key2Set.Builder.withKey1Sort(Comparator<? super K1> comparator, boolean sortNullsFirst) Set comparator to use for sorting the key map.Key2Set.Builder.withKey2Duplicates(boolean allowDuplicates) Key2Set.Builder.withKey2Duplicates(boolean allowDuplicates, boolean allowDuplicatesNull) Key2Set.Builder.withKey2Map(Function<? super E, K2> mapper) Add key map.Key2Set.Builder.withKey2Null(boolean allowNull) Key2Set.Builder.withKey2Sort(boolean sort) Key2Set.Builder.withKey2Sort(Comparator<? super K2> comparator) Set comparator to use for sorting the key map.Key2Set.Builder.withKey2Sort(Comparator<? super K2> comparator, boolean sortNullsFirst) Set comparator to use for sorting the key map.Key2Set.Builder.withMaxSize(int maxSize) Key2Set.Builder.withNull(boolean allowNull) Key2Set.Builder.withOrderByElem(boolean orderBy) Key2Set.Builder.withOrderByKey1(boolean orderBy) Key2Set.Builder.withOrderByKey2(boolean orderBy) Key2Set.Builder.withPrimaryElem()Specify the element to be a primary key.Key2Set.Builder.withPrimaryKey1Map(Function<? super E, K1> mapper) Specify this key to be a primary key.Key2Set.Builder.withPrimaryKey2Map(Function<? super E, K2> mapper) Specify this key to be a primary key.Key2Set.Builder.withSetBehavior(boolean setBehavior) Specifies that the collection behaves like aSeton adding elements, i.e.Key2Set.Builder.withUniqueElem()Specify the element to be a unique key.Key2Set.Builder.withUniqueKey1Map(Function<? super E, K1> mapper) Specify this key to be a unique key.Key2Set.Builder.withUniqueKey2Map(Function<? super E, K2> mapper) Specify this key to be a unique key.