Class EntityWeakHashMap<E extends org.bukkit.entity.Entity,V>

All Implemented Interfaces:
Map<E,V>

public final class EntityWeakHashMap<E extends org.bukkit.entity.Entity,V> extends EntityHashMap<EntityWeakHashMap<E,V>,E,V>
  • Constructor Details

  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • containsKey

      public boolean containsKey(Object key)
    • containsValue

      public boolean containsValue(Object value)
    • get

      public V get(Object key)
    • remove

      public V remove(Object key)
    • putAll

      public void putAll(@NotNull @NotNull Map m)
    • clear

      public void clear()
    • keySet

      @NotNull public @NotNull Set<E> keySet()
    • values

      @NotNull public @NotNull Collection<V> values()
    • entrySet

      @NotNull public @NotNull Set<Map.Entry<E,V>> entrySet()
    • put

      public V put(E entity, V value)
      Specified by:
      put in interface Map<E extends org.bukkit.entity.Entity,V>
      Specified by:
      put in class EntityHashMap<EntityWeakHashMap<E extends org.bukkit.entity.Entity,V>,E extends org.bukkit.entity.Entity,V>
    • remove

      public V remove(E entity)
      Specified by:
      remove in class EntityHashMap<EntityWeakHashMap<E extends org.bukkit.entity.Entity,V>,E extends org.bukkit.entity.Entity,V>
    • containsKey

      public boolean containsKey(E entity)
      Specified by:
      containsKey in class EntityHashMap<EntityWeakHashMap<E extends org.bukkit.entity.Entity,V>,E extends org.bukkit.entity.Entity,V>
    • getOrDefault

      public V getOrDefault(Object key, V defaultValue)
    • forEach

      public void forEach(BiConsumer<? super E,? super V> action)
    • replaceAll

      public void replaceAll(BiFunction<? super E,? super V,? extends V> function)
    • putIfAbsent

      @Nullable public V putIfAbsent(E key, V value)
    • remove

      public boolean remove(Object key, Object value)
    • replace

      public boolean replace(E key, V oldValue, V newValue)
    • replace

      @Nullable public V replace(E key, V value)
    • computeIfAbsent

      public V computeIfAbsent(E key, @NotNull @NotNull Function<? super E,? extends V> mappingFunction)
    • computeIfPresent

      public V computeIfPresent(E key, @NotNull @NotNull BiFunction<? super E,? super V,? extends V> remappingFunction)
    • compute

      public V compute(E key, @NotNull @NotNull BiFunction<? super E,? super V,? extends V> remappingFunction)
    • merge

      public V merge(E key, @NotNull V value, @NotNull @NotNull BiFunction<? super V,? super V,? extends V> remappingFunction)
    • toString

      public String toString()
      Overrides:
      toString in class Object