Class SubClassingBag<T>
- java.lang.Object
-
- com.vladsch.flexmark.util.collection.SubClassingBag<T>
-
public class SubClassingBag<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull ClassificationBag<java.lang.Class<?>,T>
items
private @NotNull java.util.HashMap<java.lang.Class<?>,java.util.BitSet>
subClassMap
-
Constructor Summary
Constructors Constructor Description SubClassingBag(@NotNull ClassificationBag<java.lang.Class<?>,T> items, java.util.HashMap<java.lang.Class<?>,@NotNull java.util.List<java.lang.Class<?>>> subClassMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(T item)
boolean
containsType(@Nullable java.lang.Class<?> type)
@NotNull OrderedSet<T>
getItems()
int
getTypeCount(@Nullable java.lang.Class<?> category)
java.util.BitSet
getTypeSet(@Nullable java.lang.Class<?> category)
<X> @NotNull ReversibleIterable<X>
itemsOfType(@NotNull java.lang.Class<X> xClass, @NotNull java.lang.Class<?>... categories)
<X> @NotNull ReversibleIterable<X>
itemsOfType(@NotNull java.lang.Class<X> xClass, @NotNull java.util.Collection<java.lang.Class<?>> categories)
<X> @NotNull ReversibleIterable<X>
reversedItemsOfType(@NotNull java.lang.Class<X> xClass, @NotNull java.lang.Class<?>... categories)
<X> @NotNull ReversibleIterable<X>
reversedItemsOfType(@NotNull java.lang.Class<X> xClass, @NotNull java.util.Collection<java.lang.Class<?>> categories)
@NotNull java.util.BitSet
typeBitSet(@NotNull java.lang.Class<?> xClass, @NotNull java.lang.Class<?>... categories)
@NotNull java.util.BitSet
typeBitSet(@NotNull java.lang.Class<?> xClass, @NotNull java.util.Collection<java.lang.Class<?>> categories)
-
-
-
Field Detail
-
items
@NotNull private final @NotNull ClassificationBag<java.lang.Class<?>,T> items
-
subClassMap
@NotNull private final @NotNull java.util.HashMap<java.lang.Class<?>,java.util.BitSet> subClassMap
-
-
Constructor Detail
-
SubClassingBag
public SubClassingBag(@NotNull @NotNull ClassificationBag<java.lang.Class<?>,T> items, java.util.HashMap<java.lang.Class<?>,@NotNull java.util.List<java.lang.Class<?>>> subClassMap)
-
-
Method Detail
-
getItems
@NotNull public @NotNull OrderedSet<T> getItems()
-
contains
public boolean contains(@Nullable T item)
-
containsType
public boolean containsType(@Nullable @Nullable java.lang.Class<?> type)
-
getTypeSet
public java.util.BitSet getTypeSet(@Nullable @Nullable java.lang.Class<?> category)
-
getTypeCount
public int getTypeCount(@Nullable @Nullable java.lang.Class<?> category)
-
itemsOfType
@NotNull public final <X> @NotNull ReversibleIterable<X> itemsOfType(@NotNull @NotNull java.lang.Class<X> xClass, @NotNull @NotNull java.lang.Class<?>... categories)
-
itemsOfType
@NotNull public final <X> @NotNull ReversibleIterable<X> itemsOfType(@NotNull @NotNull java.lang.Class<X> xClass, @NotNull @NotNull java.util.Collection<java.lang.Class<?>> categories)
-
reversedItemsOfType
@NotNull public final <X> @NotNull ReversibleIterable<X> reversedItemsOfType(@NotNull @NotNull java.lang.Class<X> xClass, @NotNull @NotNull java.lang.Class<?>... categories)
-
reversedItemsOfType
@NotNull public final <X> @NotNull ReversibleIterable<X> reversedItemsOfType(@NotNull @NotNull java.lang.Class<X> xClass, @NotNull @NotNull java.util.Collection<java.lang.Class<?>> categories)
-
typeBitSet
@NotNull public final @NotNull java.util.BitSet typeBitSet(@NotNull @NotNull java.lang.Class<?> xClass, @NotNull @NotNull java.lang.Class<?>... categories)
-
typeBitSet
@NotNull public final @NotNull java.util.BitSet typeBitSet(@NotNull @NotNull java.lang.Class<?> xClass, @NotNull @NotNull java.util.Collection<java.lang.Class<?>> categories)
-
-