com.jidesoft.utils.CachedArrayList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jide-oss Show documentation
Show all versions of jide-oss Show documentation
JIDE Common Layer (Professional Swing Components)
/*
* @(#)CachedArrayList.java 10/5/2005
*
* Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
*/
package com.jidesoft.utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.Map;
/**
* 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 appropriately. Just
* like ArrayList, this implementation is not synchronized. If you want a thread safe implementation, you can
* use {@link com.jidesoft.utils.CachedArrayList}.
*/
public class CachedArrayList extends ArrayList {
private static final long serialVersionUID = 3835017332487313880L;
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy