Examples of SoftReference


Examples of java.lang.ref.SoftReference

  if (softRef == null ||
            ((colorConvertOpBuf = (HashMap)softRef.get()) == null)) {

      colorConvertOpBuf = new HashMap();
      softRef = new SoftReference(colorConvertOpBuf);
  }

  ArrayList hashcode = new ArrayList(2);
  hashcode.add(0, src);
  hashcode.add(1, dst);
View Full Code Here

Examples of java.lang.ref.SoftReference

            Object referent = reference.get();
            ImagingListenerImpl listener;
            if (referent == null) {
                // First invocation or SoftReference has been cleared.
                reference =
                    new SoftReference(listener = new ImagingListenerImpl());
            } else {
                // SoftReference has not been cleared.
                listener = (ImagingListenerImpl)referent;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.