/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; return t; }
/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; return t; }
/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(t); }
/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(t); }
/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(t); }
/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(t); }
/** * Returns an object back to the pool. */ @Override public final void recycle(char[] t) { getQueue().offer(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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; 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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; 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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; 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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; 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. */ @Override public final char[] take() { char[] t = getQueue().poll(); if (t==null) return new char[4096]; return t; }