Class SetWrapper<E>

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<E>
com.google.common.collect.ForwardingSet<E>
io.github.retrooper.packetevents.injector.SetWrapper<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class SetWrapper<E> extends com.google.common.collect.ForwardingSet<E>
  • Constructor Details

    • SetWrapper

      public SetWrapper(Set<E> set, Consumer<E> addListener)
  • Method Details

    • add

      public boolean add(@NonNull E element)
      Specified by:
      add in interface Collection<E>
      Specified by:
      add in interface Set<E>
      Overrides:
      add in class com.google.common.collect.ForwardingCollection<E>
    • addAll

      public boolean addAll(Collection<? extends E> collection)
      Specified by:
      addAll in interface Collection<E>
      Specified by:
      addAll in interface Set<E>
      Overrides:
      addAll in class com.google.common.collect.ForwardingCollection<E>
    • delegate

      protected Set<E> delegate()
      Specified by:
      delegate in class com.google.common.collect.ForwardingSet<E>
    • originalSet

      public Set<E> originalSet()