Updates alias list to support talkgroup range and patch groups. (#463)

This commit is contained in:
Denny Sheirer
2018-12-27 07:52:38 -05:00
committed by GitHub
parent 5960343637
commit 10b6a08624
2 changed files with 118 additions and 9 deletions

View File

@@ -120,6 +120,16 @@ public class TalkgroupRange extends AliasID
return false;
}
/**
* Indicates if this talkgroup range contains/includes the talkgroup value
* @param talkgroupValue
* @return
*/
public boolean contains(int talkgroupValue)
{
return getMinTalkgroup() <= talkgroupValue && talkgroupValue <= getMaxTalkgroup();
}
@JacksonXmlProperty(isAttribute = true, localName = "type", namespace = "http://www.w3.org/2001/XMLSchema-instance")
@Override
public AliasIDType getType()