Examples of SoftValueHashMap


Examples of com.lightcrafts.utils.SoftValueHashMap

        this.engine = engine;

        source = image;
        if (source != null) {
            backgroundCache = new SoftValueHashMap();
            source.addTileComputationListener(tileManager);
            // Swing geometry
            setPreferredSize(new Dimension(source.getWidth(), source.getHeight()));
        }
        setOpaque(true);
View Full Code Here

Examples of com.lightcrafts.utils.SoftValueHashMap

        validImageBackground = new boolean[maxTileX+1][maxTileY+1];

        synchronizedImage = synchronous;

        if (oldImage == null || !oldImage.getBounds().equals(image.getBounds())) {
            backgroundCache = new SoftValueHashMap();

            // Swing geometry
            Dimension dim = new Dimension(source.getWidth(), source.getHeight());
            setPreferredSize(dim);
        }
View Full Code Here

Examples of org.geotools.util.SoftValueHashMap

    XSDTypeDefinition container;

    public BindingWalker(BindingLoader factory) {
        this.loader = factory;

        chains = new SoftValueHashMap(100);
        typeWalker = new TypeWalker();
    }
View Full Code Here

Examples of org.jboss.util.collection.SoftValueHashMap

    * Tests of the SoftValueHashMap
    * @throws Exception
    */
   public void testSoftValueHashMap() throws Exception
   {
      SoftValueHashMap map = new SoftValueHashMap();
      for(int n = 0; n < 1000; n ++)
      {
         String key = "Key#"+n;
         String value = "Value#"+n;
         map.put(key, value);
      }
      assertEquals("Size == 1000", 1000, map.size());
      forceSoftRefCollection();
      assertEquals("Size == 0 after gc", 0, map.size());
   }
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.