Constructor
new BinaryStorage(keys, valueopt)
Parameters:
Name |
Type |
Attributes |
Description |
keys |
Array.<string>
|
|
|
value |
string
|
<optional>
|
|
- Source:
Extends
Methods
(protected) ____defineStaticProperties()
auto define all to be cleaned properties
- Overrides:
- Source:
Throws:
Error
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base.Params
(protected) ____mergeDerivedParam(level0, type, value)
Parameters:
- Overrides:
- Source:
Throws:
Error
(protected) ____mergeDerivedParams(level0, level1)
Parameters:
- Overrides:
- Source:
Throws:
Error
(protected) ____resolveDerivedParams(classConfig)
Parameters:
- Overrides:
- Source:
(protected) _destroyControl(…keys)
destroys class properties
Parameters:
Name |
Type |
Attributes |
Description |
keys |
string
|
<repeatable>
|
|
- Overrides:
- Source:
fires an event that can be observed from outside
Parameters:
Name |
Type |
Description |
event |
Object
|
the event to be fired |
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
fires an event that can be observed from outside
Parameters:
Name |
Type |
Description |
event |
Object
|
the event to be fired |
- Overrides:
- Source:
Returns:
-
Type
-
Promise.<Array.<Help4.EmbeddedEvent.EventResponse>>
fires an event that can be observed from outside
Parameters:
Name |
Type |
Description |
event |
Object
|
the event to be fired |
- Overrides:
- Source:
Returns:
-
Type
-
Array.<Help4.EmbeddedEvent.EventResponse>
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
Help4.BinaryStorage
addListener(eventType, listener) → {Help4.jscore.Base}
add an event listener
Parameters:
Name |
Type |
Description |
eventType |
string
|
Array.<string>
|
event type to be observed |
listener |
Help4.EmbeddedEvent.Listener
|
the callback function |
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
addListenerSync(eventType, listener) → {Help4.jscore.Base}
add an event listener
Parameters:
Name |
Type |
Description |
eventType |
string
|
Array.<string>
|
event type to be observed |
listener |
Help4.EmbeddedEvent.Listener
|
the callback function |
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
destroy()
destroy instance
- Overrides:
- Source:
has(value) → {boolean}
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
boolean
hasOneOf(values) → {boolean}
Parameters:
Name |
Type |
Description |
values |
Array.<string>
|
|
- Source:
Returns:
-
Type
-
boolean
isDestroyed() → {boolean}
whether instance is destroyed
- Overrides:
- Source:
Returns:
-
Type
-
boolean
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
Help4.BinaryStorage
removeListener(eventType, listener) → {Help4.jscore.Base}
remove an event listener
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
Help4.jscore.Base
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
Help4.BinaryStorage
(static) calcSum(map) → {number}
Parameters:
Name |
Type |
Description |
map |
Object
|
|
- Source:
Returns:
-
Type
-
number
(static) createInternalMap(keys) → {Object}
creates a binary map for all keys, e.g.
{
: 1,
: 2,
: 4
: 8
...
}
Parameters:
Name |
Type |
Description |
keys |
Array.<string>
|
|
- Source:
Returns:
-
Type
-
Object
(static) createPublicMap(keys) → {Object}
Parameters:
Name |
Type |
Description |
keys |
Array.<string>
|
|
- Source:
Returns:
-
Type
-
Object