Class IndexedItemSetMapBase<K,S,M>

java.lang.Object
com.vladsch.flexmark.util.collection.IndexedItemSetMapBase<K,S,M>
All Implemented Interfaces:
IndexedItemSetMap<K,S,M>, Map<K,S>
Direct Known Subclasses:
IndexedItemBitSetMap

public abstract class IndexedItemSetMapBase<K,S,M> extends Object implements IndexedItemSetMap<K,S,M>
  • Field Details

  • Constructor Details

    • IndexedItemSetMapBase

      public IndexedItemSetMapBase()
    • IndexedItemSetMapBase

      public IndexedItemSetMapBase(int capacity)
  • Method Details

    • mapKey

      @NotNull public abstract K mapKey(@NotNull M key)
      Specified by:
      mapKey in interface IndexedItemSetMap<K,S,M>
    • newSet

      @NotNull public abstract S newSet()
      Specified by:
      newSet in interface IndexedItemSetMap<K,S,M>
    • addSetItem

      public abstract boolean addSetItem(@NotNull S s, int item)
      Specified by:
      addSetItem in interface IndexedItemSetMap<K,S,M>
    • removeSetItem

      public abstract boolean removeSetItem(@NotNull S s, int item)
      Specified by:
      removeSetItem in interface IndexedItemSetMap<K,S,M>
    • containsSetItem

      public abstract boolean containsSetItem(@NotNull S s, int item)
      Specified by:
      containsSetItem in interface IndexedItemSetMap<K,S,M>
    • addItem

      public boolean addItem(@NotNull M key, int item)
      Specified by:
      addItem in interface IndexedItemSetMap<K,S,M>
    • removeItem

      public boolean removeItem(@NotNull M key, int item)
      Specified by:
      removeItem in interface IndexedItemSetMap<K,S,M>
    • containsItem

      public boolean containsItem(@NotNull M key, int item)
      Specified by:
      containsItem in interface IndexedItemSetMap<K,S,M>
    • size

      public int size()
      Specified by:
      size in interface Map<K,S>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<K,S>
    • containsKey

      public boolean containsKey(@Nullable @Nullable Object o)
      Specified by:
      containsKey in interface Map<K,S>
    • containsValue

      public boolean containsValue(@Nullable @Nullable Object o)
      Specified by:
      containsValue in interface Map<K,S>
    • get

      @Nullable public S get(@Nullable @Nullable Object o)
      Specified by:
      get in interface Map<K,S>
    • put

      @Nullable public S put(@NotNull K k, @NotNull S vs)
      Specified by:
      put in interface Map<K,S>
    • remove

      @Nullable public S remove(@Nullable @Nullable Object o)
      Specified by:
      remove in interface Map<K,S>
    • putAll

      public void putAll(@NotNull @NotNull Map<? extends K,? extends S> map)
      Specified by:
      putAll in interface Map<K,S>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<K,S>
    • keySet

      @NotNull public @NotNull Set<K> keySet()
      Specified by:
      keySet in interface Map<K,S>
    • values

      @NotNull public @NotNull Collection<S> values()
      Specified by:
      values in interface Map<K,S>
    • entrySet

      @NotNull public @NotNull Set<Map.Entry<K,S>> entrySet()
      Specified by:
      entrySet in interface Map<K,S>