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 of `TextualSearchList.KeyExtractor`. The extracted key is the string returned by the `toString()` 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultKeyExtractor

          protected DefaultKeyExtractor()

  - ### 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 interface `TextualSearchList.KeyExtractor<E>`
      Parameters:
        `obj` - Object from which a textual key must be extracted.
      Returns:
        Its textual key (case-sensitive).