@@ -0,0 +1,663 @@
+package com.wizzardo.tools.misc.pool;%0A%0Aimport java.lang.ref.SoftReference;%0A%0A/**%0A * Created by wizzardo on 19.06.15.%0A */%0Apublic class SoftHolder%3CT%3E implements Holder%3CT%3E %7B%0A    protected final Pool%3CT%3E pool;%0A    protected volatile SoftReference%3CT%3E ref;%0A%0A    public SoftHolder(Pool%3CT%3E pool, T value) %7B%0A        this.pool = pool;%0A        ref = new SoftReference%3CT%3E(value);%0A    %7D%0A%0A    @Override%0A    public T get() %7B%0A        T value = ref.get();%0A        if (value == null) %7B%0A            value = pool.create();%0A            ref = new SoftReference%3CT%3E(value);%0A        %7D%0A        return value;%0A    %7D%0A%0A    @Override%0A    public void close() %7B%0A        pool.release(this);%0A    %7D%0A%7D%0A

add SoftHolder