/** * Gets a new object from the pool. * * <p> * If no object is available in the pool, this method creates a new one. * * @return * always non-null. */ public final T take() { T t = getQueue().poll(); if(t==null) return create(); return t; }
/** * Gets a new object from the pool. * * <p> * If no object is available in the pool, this method creates a new one. * * @return * always non-null. */ public final T take() { T t = getQueue().poll(); if(t==null) return create(); return t; }
/** * Gets a new object from the pool. * * <p> * If no object is available in the pool, this method creates a new one. * * @return * always non-null. */ public final T take() { T t = getQueue().poll(); if(t==null) return create(); return t; }