Class WeakCollection<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>

    public class WeakCollection<T>
    extends java.lang.Object
    implements java.lang.Iterable<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      WeakCollection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object add​(T entry)  
      void forEach​(java.util.function.Consumer<? super T> action)  
      boolean isEmpty()  
      @NotNull java.util.Iterator<T> iterator()  
      void remove​(java.lang.Object key)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        spliterator
    • Constructor Detail

      • WeakCollection

        public WeakCollection()
    • Method Detail

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • forEach

        public void forEach​(java.util.function.Consumer<? super T> action)
        Specified by:
        forEach in interface java.lang.Iterable<T>
      • add

        public java.lang.Object add​(T entry)
      • remove

        public void remove​(java.lang.Object key)
      • iterator

        @NotNull
        public @NotNull java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>