Package elki.utilities
Class ELKIServiceRegistry.Entry
- java.lang.Object
-
- elki.utilities.ELKIServiceRegistry.Entry
-
- Enclosing class:
- ELKIServiceRegistry
private static class ELKIServiceRegistry.Entry extends java.lang.Object
Entry in the service registry.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]
aliases
Aliases hash map.private int
aliaslen
Occupied entries in aliases.private java.lang.Class<?>[]
clazzes
Loaded classes.private static java.lang.String[]
EMPTY_ALIASES
Reusable empty array.private int
len
Length.private java.lang.String[]
names
Class names.
-
Constructor Summary
Constructors Modifier Constructor Description private
Entry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addAlias(java.lang.String alias, java.lang.String cname)
Register a class alias.private void
addHit(java.lang.String cname, java.lang.Class<?> c)
If a name has been resolved, add it.private void
addName(java.lang.String cname)
Add a candidate.
-
-
-
Field Detail
-
EMPTY_ALIASES
private static final java.lang.String[] EMPTY_ALIASES
Reusable empty array.
-
names
private java.lang.String[] names
Class names.
-
clazzes
private java.lang.Class<?>[] clazzes
Loaded classes.
-
len
private int len
Length.
-
aliases
private java.lang.String[] aliases
Aliases hash map.
-
aliaslen
private int aliaslen
Occupied entries in aliases.
-
-
Method Detail
-
addName
private void addName(java.lang.String cname)
Add a candidate.- Parameters:
cname
- Candidate name
-
addHit
private void addHit(java.lang.String cname, java.lang.Class<?> c)
If a name has been resolved, add it.- Parameters:
cname
- Namec
- Resulting class
-
addAlias
private void addAlias(java.lang.String alias, java.lang.String cname)
Register a class alias.- Parameters:
alias
- Alias namecname
- Class name
-
-