Метод | Описание | |
---|---|---|
asTransient ( ) : ITransientCollection | ||
assoc ( object key, object val ) : IPersistentMap |
Add a new key/value pair. Overwrites an exising value for the key, if present. |
|
assocEx ( object key, object val ) : IPersistentMap |
Add a new key/value pair. Throws an exception if key has a value already. |
|
containsKey ( object key ) : bool |
Test if the map contains a key.
|
|
count ( ) : int |
Gets the number of items in the collection.
|
|
empty ( ) : IPersistentCollection |
Gets an empty collection of the same type.
|
|
entryAt ( object key ) : IMapEntry |
Returns the key/value pair for this key.
|
|
meta ( ) : IPersistentMap | ||
seq ( ) : ISeq |
Gets an ISeq to allow first/rest iteration through the collection.
|
|
valAt ( object key ) : object |
Gets the value associated with a key.
|
|
valAt ( object key, object notFound ) : object |
Gets the value associated with a key.
|
|
withMeta ( IPersistentMap meta ) : IObj |
Create a copy with new metadata.
|
|
without ( object key ) : IPersistentMap |
Remove a key entry.
|
Метод | Описание | |
---|---|---|
Bitpos ( int hash, int shift ) : int | ||
CloneAndSet ( INode array, int i, INode a ) : INode[] | ||
CloneAndSet ( object array, int i, object a ) : object[] | ||
CloneAndSet ( object array, int i, object a, int j, object b ) : object[] | ||
CreateNode ( AtomicReference |
||
CreateNode ( int shift, object key1, object val1, int key2hash, object key2, object val2 ) : INode | ||
Hash ( object k ) : int | ||
PersistentHashMap ( IPersistentMap meta, int count, INode root, bool hasNull, object nullValue ) : System |
Initialize a
|
|
PersistentHashMap ( int count, INode root, bool hasNull, object nullValue ) : System |
Initialize a
|
|
RemovePair ( object array, int i ) : object[] | ||
create ( IDictionary other ) : IPersistentMap | ||
create ( ) : |
||
create ( IPersistentMap meta ) : |
||
create ( ISeq items ) : |
||
create1 ( IList init ) : |
||
createWithCheck ( ) : |
||
createWithCheck ( ISeq items ) : |
public asTransient ( ) : ITransientCollection | ||
Результат | ITransientCollection |
public assoc ( object key, object val ) : IPersistentMap | ||
key | object | The key |
val | object | The value |
Результат | IPersistentMap |
public assocEx ( object key, object val ) : IPersistentMap | ||
key | object | The key |
val | object | The value |
Результат | IPersistentMap |
public containsKey ( object key ) : bool | ||
key | object | The key to test for membership |
Результат | bool |
public entryAt ( object key ) : IMapEntry | ||
key | object | The key to retrieve |
Результат | IMapEntry |
public valAt ( object key ) : object | ||
key | object | The key to look up. |
Результат | object |
public valAt ( object key, object notFound ) : object | ||
key | object | The key to look up. |
notFound | object | The value to return if the key is not present. |
Результат | object |
public withMeta ( IPersistentMap meta ) : IObj | ||
meta | IPersistentMap | The new metadata. |
Результат | IObj |
public without ( object key ) : IPersistentMap | ||
key | object | The key to remove |
Результат | IPersistentMap |