
com.jidesoft.utils.CachedVector Maven / Gradle / Ivy
package com.jidesoft.utils;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.Map;
import java.util.Vector;
/**
* This is a fast access Vector that sacrifices memory for speed. It will reduce the speed of indexOf method from O(n)
* to O(1). However it will at least double the memory used by Vector. So use it appropriately. Just like
* Vector, this implementation is synchronized. In comparison, {@link CachedArrayList} is not synchronized.
*/
public class CachedVector extends Vector {
private static final long serialVersionUID = -4994486169224407197L;
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy