*
* @param converters index converters
* @throws IllegalArgumentException if several converters have the same index type
*/
public IndexConverterManager(IndexSymbolConverter[] converters) {
TByteHashSet types = new TByteHashSet(converters.length);
for (IndexSymbolConverter converter : converters) {
if (types.contains(converter.getType()))
throw new IllegalArgumentException("Several converters for same type.");
types.add(converter.getType());
}
this.converters = converters;
}