public class IndexingAlphabetWrapper extends Object implements IndexingFunction<String>
Constructor and Description |
---|
IndexingAlphabetWrapper(Alphabet alphabet) |
Modifier and Type | Method and Description |
---|---|
int |
index(String symbol)
This function maps the given object to its index.
|
int |
range()
The number of indices used by this index.
|
public IndexingAlphabetWrapper(@NonNull Alphabet alphabet)
public int index(@NonNull String symbol)
IndexingFunction
index
in interface IndexingFunction<String>
symbol
- some object.public int range()
IndexingFunction
range
in interface IndexingFunction<String>
Copyright (C) 2016-2018 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/