Package 

Class WeakStack

  • All Implemented Interfaces:
    kotlin.collections.Collection , kotlin.collections.Iterable , kotlin.collections.MutableCollection , kotlin.collections.MutableIterable

    
    public final class WeakStack<T extends Object>
    extends AbstractCollection<T>
                        

    A stack which keeps only weak references

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer size
    • Constructor Summary

      Constructors 
      Constructor Description
      WeakStack()
    • Method Summary

      Modifier and Type Method Description
      Integer getSize()
      Boolean contains(T element)
      Iterator<T> iterator()
      Boolean add(T element)
      Boolean remove(T element)
      final T peek()
      final T pop()
      Unit clear()
      • Methods inherited from class org.acra.collections.WeakStack

        addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class kotlin.collections.Collection

        forEach
      • Methods inherited from class kotlin.collections.MutableCollection

        parallelStream, spliterator, stream, toArray
      • Methods inherited from class java.util.AbstractCollection

        removeIf
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait