Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LruHashMap (0.05 sec)

  1. src/main/java/org/codelibs/core/collection/LruHashMap.java

         */
        protected final int limitSize;
    
        /**
         * Creates an {@link LruHashMap}.
         *
         * @param limitSize the upper limit on the number of entries
         */
        public LruHashMap(final int limitSize) {
            this(limitSize, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR);
        }
    
        /**
         * Creates an {@link LruHashMap}.
         *
         * @param limitSize the upper limit on the number of entries
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/LruHashSet.java

    import java.util.AbstractSet;
    import java.util.ConcurrentModificationException;
    import java.util.Iterator;
    import java.util.Set;
    
    /**
     * A {@link Set} implementation that stores its elements in a {@link LruHashMap}.
     * <p>
     * This set has a fixed maximum capacity. When the capacity is reached and a new element is added,
     * the least recently used element is removed.
     * </p>
     * @author shinsuke
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/LruHashMapTest.java

    /**
     * @author taichi
     */
    public class LruHashMapTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testAll() throws Exception {
            final LruHashMap<String, String> lru = new LruHashMap<String, String>(3);
            lru.put("aaa", "111");
            lru.put("bbb", "222");
            lru.put("ccc", "333");
            assertThat(lru.get("aaa"), is("111"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top