Class Pool.Element<T>

  • Enclosing class:
    Pool<T>

    public static class Pool.Element<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected T element  
      protected java.util.concurrent.locks.Lock lock  
    • Constructor Summary

      Constructors 
      Constructor Description
      Element​(T element, java.util.concurrent.locks.Lock lock)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getElement()  
      java.util.concurrent.locks.Lock getLock()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • element

        protected final T element
      • lock

        protected final java.util.concurrent.locks.Lock lock
    • Constructor Detail

      • Element

        public Element​(T element,
                       java.util.concurrent.locks.Lock lock)
    • Method Detail

      • getElement

        public T getElement()
      • getLock

        public java.util.concurrent.locks.Lock getLock()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object