Top Fields Constructors Methods
com.vladsch.flexmark.util.collection

public Class SubClassingBag<T>

extends Object
Class Inheritance
Imports
com.vladsch.flexmark.util.collection.iteration.ReversibleIterable, org.jetbrains.annotations.NotNull, .Nullable, java.util.BitSet, .Collection, .HashMap, .List

Field Summary

Modifier and TypeField and Description
private final @NotNull ClassificationBag<Class<?>, T>
private final @NotNull HashMap<Class<?>, BitSet>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(T item)

public boolean
public @NotNull OrderedSet<T>
public int
public BitSet
getTypeSet(@Nullable Class<?> category)

public final <X> @NotNull ReversibleIterable<X>
itemsOfType(@NotNull Class<X> xClass, @NotNull Class<?>... categories)

public final <X> @NotNull ReversibleIterable<X>
itemsOfType(@NotNull Class<X> xClass, @NotNull Collection<Class<?>> categories)

public final <X> @NotNull ReversibleIterable<X>
reversedItemsOfType(@NotNull Class<X> xClass, @NotNull Class<?>... categories)

public final <X> @NotNull ReversibleIterable<X>
public final @NotNull BitSet
typeBitSet(@NotNull Class<?> xClass, @NotNull Class<?>... categories)

public final @NotNull BitSet
typeBitSet(@NotNull Class<?> xClass, @NotNull Collection<Class<?>> categories)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

itemsback to summary
private final @NotNull ClassificationBag<Class<?>, T> items
Annotations
@NotNull
subClassMapback to summary
private final @NotNull HashMap<Class<?>, BitSet> subClassMap
Annotations
@NotNull

Constructor Detail

SubClassingBagback to summary
public SubClassingBag(@NotNull ClassificationBag<Class<?>, T> items, HashMap<Class<?>, @NotNull List<Class<?>>> subClassMap)

Method Detail

containsback to summary
public boolean contains(T item)
containsTypeback to summary
public boolean containsType(@Nullable Class<?> type)
getItemsback to summary
public @NotNull OrderedSet<T> getItems()
Annotations
@NotNull
getTypeCountback to summary
public int getTypeCount(@Nullable Class<?> category)
getTypeSetback to summary
public BitSet getTypeSet(@Nullable Class<?> category)
itemsOfTypeback to summary
public final <X> @NotNull ReversibleIterable<X> itemsOfType(@NotNull Class<X> xClass, @NotNull Class<?>... categories)
Annotations
@NotNull
itemsOfTypeback to summary
public final <X> @NotNull ReversibleIterable<X> itemsOfType(@NotNull Class<X> xClass, @NotNull Collection<Class<?>> categories)
Annotations
@NotNull
reversedItemsOfTypeback to summary
public final <X> @NotNull ReversibleIterable<X> reversedItemsOfType(@NotNull Class<X> xClass, @NotNull Class<?>... categories)
Annotations
@NotNull
reversedItemsOfTypeback to summary
public final <X> @NotNull ReversibleIterable<X> reversedItemsOfType(@NotNull Class<X> xClass, @NotNull Collection<Class<?>> categories)
Annotations
@NotNull
typeBitSetback to summary
public final @NotNull BitSet typeBitSet(@NotNull Class<?> xClass, @NotNull Class<?>... categories)
Annotations
@SuppressWarnings:WeakerAccess
@NotNull
typeBitSetback to summary
public final @NotNull BitSet typeBitSet(@NotNull Class<?> xClass, @NotNull Collection<Class<?>> categories)
Annotations
@SuppressWarnings:WeakerAccess
@NotNull