Class EntityWeakHashSet<E extends org.bukkit.entity.Entity>

All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class EntityWeakHashSet<E extends org.bukkit.entity.Entity> extends EntityHashSet<EntityWeakHashSet<E>,E>
  • Constructor Details

  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • contains

      public boolean contains(Object o)
    • contains

      public boolean contains(E o)
      Specified by:
      contains in class EntityHashSet<EntityWeakHashSet<E extends org.bukkit.entity.Entity>,E extends org.bukkit.entity.Entity>
    • iterator

      @NotNull public @NotNull Iterator<E> iterator()
    • forEach

      public void forEach(Consumer<? super E> action)
    • toArray

      @NotNull public @NotNull Object[] toArray()
    • toArray

      @NotNull public <T> T[] toArray(@NotNull T[] a)
    • add

      public boolean add(E entity)
      Specified by:
      add in interface Collection<E extends org.bukkit.entity.Entity>
      Specified by:
      add in interface Set<E extends org.bukkit.entity.Entity>
      Specified by:
      add in class EntityHashSet<EntityWeakHashSet<E extends org.bukkit.entity.Entity>,E extends org.bukkit.entity.Entity>
    • remove

      public boolean remove(Object o)
    • remove

      public boolean remove(E o)
      Specified by:
      remove in class EntityHashSet<EntityWeakHashSet<E extends org.bukkit.entity.Entity>,E extends org.bukkit.entity.Entity>
    • containsAll

      public boolean containsAll(@NotNull @NotNull Collection<?> c)
    • addAll

      public boolean addAll(@NotNull @NotNull Collection<? extends E> c)
    • retainAll

      public boolean retainAll(@NotNull @NotNull Collection<?> c)
    • removeAll

      public boolean removeAll(@NotNull @NotNull Collection<?> c)
    • removeIf

      public boolean removeIf(Predicate<? super E> filter)
    • clear

      public void clear()
    • spliterator

      public Spliterator<E> spliterator()
    • stream

      public Stream<E> stream()
    • parallelStream

      public Stream<E> parallelStream()
    • toString

      public String toString()
      Overrides:
      toString in class Object