public class ClassificationBag<K,V> extends Object
| Constructor and Description |
|---|
ClassificationBag(Function<V,K> mapper) |
ClassificationBag(@NotNull Function<V,K> mapper,
@Nullable CollectionHost<V> host) |
ClassificationBag(int capacity,
@NotNull Function<V,K> mapper) |
ClassificationBag(int capacity,
@NotNull Function<V,K> mapper,
@Nullable CollectionHost<V> host) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V item) |
@NotNull BitSet |
categoriesBitSet(@NotNull Collection<? extends K> categories) |
@NotNull BitSet |
categoriesBitSet(K... categories) |
void |
clear() |
boolean |
contains(V item) |
boolean |
containsCategory(K category) |
int |
getCategoryCount(K category) |
<X> @NotNull ReversibleIterable<X> |
getCategoryItems(@NotNull Class<? extends X> xClass,
@NotNull BitSet bitSet) |
<X> @NotNull ReversibleIterable<X> |
getCategoryItems(@NotNull Class<? extends X> xClass,
@NotNull Collection<? extends K> categories) |
<X> @NotNull ReversibleIterable<X> |
getCategoryItems(@NotNull Class<? extends X> xClass,
K... categories) |
<X> @NotNull ReversibleIterable<X> |
getCategoryItemsReversed(@NotNull Class<? extends X> xClass,
@NotNull BitSet bitSet) |
<X> @NotNull ReversibleIterable<X> |
getCategoryItemsReversed(@NotNull Class<? extends X> xClass,
@NotNull Collection<? extends K> categories) |
<X> @NotNull ReversibleIterable<X> |
getCategoryItemsReversed(@NotNull Class<? extends X> xClass,
K... categories) |
@NotNull Map<K,BitSet> |
getCategoryMap() |
@Nullable BitSet |
getCategorySet(K category) |
@NotNull OrderedSet<V> |
getItems() |
int |
getModificationCount() |
boolean |
remove(int index) |
boolean |
remove(V item) |
public ClassificationBag(@NotNull
@NotNull Function<V,K> mapper,
@Nullable
@Nullable CollectionHost<V> host)
public ClassificationBag(int capacity,
@NotNull
@NotNull Function<V,K> mapper,
@Nullable
@Nullable CollectionHost<V> host)
@NotNull public @NotNull OrderedSet<V> getItems()
public int getModificationCount()
public boolean add(@Nullable
V item)
public boolean remove(@Nullable
V item)
public boolean remove(int index)
public boolean contains(@Nullable
V item)
public boolean containsCategory(@Nullable
K category)
public int getCategoryCount(@Nullable
K category)
public void clear()
@SafeVarargs @NotNull public final <X> @NotNull ReversibleIterable<X> getCategoryItems(@NotNull @NotNull Class<? extends X> xClass, @NotNull K... categories)
@NotNull public final <X> @NotNull ReversibleIterable<X> getCategoryItems(@NotNull @NotNull Class<? extends X> xClass, @NotNull @NotNull Collection<? extends K> categories)
@NotNull public final <X> @NotNull ReversibleIterable<X> getCategoryItems(@NotNull @NotNull Class<? extends X> xClass, @NotNull @NotNull BitSet bitSet)
@SafeVarargs @NotNull public final <X> @NotNull ReversibleIterable<X> getCategoryItemsReversed(@NotNull @NotNull Class<? extends X> xClass, @NotNull K... categories)
@NotNull public final <X> @NotNull ReversibleIterable<X> getCategoryItemsReversed(@NotNull @NotNull Class<? extends X> xClass, @NotNull @NotNull Collection<? extends K> categories)
@NotNull public final <X> @NotNull ReversibleIterable<X> getCategoryItemsReversed(@NotNull @NotNull Class<? extends X> xClass, @NotNull @NotNull BitSet bitSet)
@SafeVarargs @NotNull public final @NotNull BitSet categoriesBitSet(@NotNull K... categories)
@NotNull public final @NotNull BitSet categoriesBitSet(@NotNull @NotNull Collection<? extends K> categories)
Copyright © 2020. All rights reserved.