Closes #72 - updates alias list to maintain a map of alias id to alias and separate lists for wildcard alias id values. Alias lookup logic is changed to first look for in the alias map for a concrete match to the alias identifier. If an alias is not found, then the list of wildcard alias identifier values is iterated looking for a matching wildcard. If the wildcard is found, then the matching alias is returned from the map.

This commit is contained in:
Denny
2016-07-31 09:18:25 -04:00
parent b19bfb400e
commit 6af24ffa38
16 changed files with 496 additions and 423 deletions

View File

@@ -55,6 +55,12 @@ public class LoJackFunctionAndID extends AliasID
mFunction = function;
}
@Override
public boolean isValid()
{
return mFunction != null && mID != null;
}
public String toString()
{
return "LoJack FUNC: " + mFunction.getLabel() + " ID:" + ( mID == null ? "" : mID );