
com.jidesoft.utils.CachedVector Maven / Gradle / Ivy
package com.jidesoft.utils;
import java.util.*;
/**
* 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 approriately. Just like Vector, this implementation is synchronized.
* In comparision, {@link CachedArrayList} is not synchronized.
*/
public class CachedVector extends Vector {
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy