org.stjs.javascript
Interface Map<K extends String,V>
- All Superinterfaces:
- Iterable<K>
public interface Map<K extends String,V>
- extends Iterable<K>
This interface represents a normal object in javascript (that acts as a map). The key can be only be a String! is done on the keys to have the
javascript equivalent of
for(var key in map)
The methods are prefixed with $ to let the generator know that is should generate bracket access instead, i.e
map.$get(key) => map[key]
map.$put(key, value) => map[key]=value
- Author:
- acraciun
$get
V $get(K key)
$put
void $put(K key,
V value)
$delete
void $delete(K key)
Copyright © 2012. All Rights Reserved.