Package cds.utils

Class TextualSearchList<E>

Type Parameters:
E - Type of object to manage in this list.
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
Direct Known Subclasses:
SearchColumnList, SearchTableList

public class TextualSearchList<E> extends ArrayList<E>

A TextualSearchList is an ArrayList with a textual search capability.

The interest of this class lies in the fact that objects can be searched with or without case sensitivity on their textual key thanks to get(String, boolean).

The textual key is extracted by an object implementing the TextualSearchList.KeyExtractor instance. If no TextualSearchList.KeyExtractor instance is given at initialization, the string returned by the toString() function will be used as key.

WARNING: The extracted key MUST be CASE-SENSITIVE and UNIQUE !

Version:
1.4 (09/2017)
Author:
Grégory Mantelet (CDS;ARI)
See Also: