Package cds.utils
Class TextualSearchList.DefaultKeyExtractor<E>
- java.lang.Object
-
- cds.utils.TextualSearchList.DefaultKeyExtractor<E>
-
- Type Parameters:
E
- Type of object from which a textual key must be extracted.
- All Implemented Interfaces:
TextualSearchList.KeyExtractor<E>
- Enclosing class:
- TextualSearchList<E>
protected static class TextualSearchList.DefaultKeyExtractor<E> extends java.lang.Object implements TextualSearchList.KeyExtractor<E>
Default implementation ofTextualSearchList.KeyExtractor
. The extracted key is the string returned by thetoString()
function.- Author:
- Grégory Mantelet (CDS)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultKeyExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKey(E obj)
Extracts an UNIQUE textual key (case-sensitive) from the given object.
-
-
-
Method Detail
-
getKey
public java.lang.String getKey(E obj)
Description copied from interface:TextualSearchList.KeyExtractor
Extracts an UNIQUE textual key (case-sensitive) from the given object.- Specified by:
getKey
in interfaceTextualSearchList.KeyExtractor<E>
- Parameters:
obj
- Object from which a textual key must be extracted.- Returns:
- Its textual key (case-sensitive).
-
-