
com.jidesoft.utils.CachedArrayList Maven / Gradle / Ivy
/*
* @(#)CachedArrayList.java 10/5/2005
*
* Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
*/
package com.jidesoft.utils;
import java.util.*;
/**
* This is a fast access ArrayList 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 ArrayList.
* So use it approriately. Just like ArrayList, this implementation is not
* synchronized. If you want a thread safe implementation, you can use {@link
* com.jidesoft.utils.CachedVector}.
*/
public class CachedArrayList extends ArrayList {
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy