bearer: Add method IsSetAPEOverride
#227
1 changed files with 7 additions and 0 deletions
|
@ -313,6 +313,13 @@ func (b *Token) SetAPEOverride(v APEOverride) {
|
|||
b.apeOverrideSet = true
|
||||
}
|
||||
|
||||
// IsSetAPEOverride return true if APEOverride is set.
|
||||
//
|
||||
// See also: APEOverride.
|
||||
func (b *Token) IsSetAPEOverride() bool {
|
||||
|
||||
return b.apeOverrideSet
|
||||
}
|
||||
|
||||
// APEOverride returns APE override set by SetAPEOverride.
|
||||
//
|
||||
// Zero Token has zero APEOverride.
|
||||
|
|
Loading…
Reference in a new issue
Why do we need this? Empty table is valid because it is not an optional parameter.
To quickly check that table is empty, to avoid checking equality to empty.
I mean, when it is missing, we can assume it is present and is empty.