프로퍼티 | 타입 | 설명 | |
---|---|---|---|
EMPTY |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_comp | IComparer | ||
_count | int |
메소드 | 설명 | |
---|---|---|
DoCompare ( object k1, object k2 ) : int |
Compare two keys.
|
|
GetEnumerator ( ) : IDictionaryEnumerator | ||
PersistentTreeMap ( ) : System |
Initialize a
|
|
PersistentTreeMap ( IPersistentMap meta, IComparer comp ) : System |
Initialize a
|
|
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. |
|
comparator ( ) : System.Collections.IComparer |
Returns the comparer used to sort the elements in the collection. Would be called |
|
containsKey ( object key ) : bool |
Test if the map contains a key.
|
|
count ( ) : int |
Gets the number of items in the collection.
|
|
create ( IDictionary other ) : IPersistentMap |
Create a
|
|
create ( IComparer comp, ISeq items ) : |
Create a
|
|
create ( ISeq items ) : |
Create a
|
|
empty ( ) : IPersistentCollection |
Gets an empty collection of the same type.
|
|
entryAt ( object key ) : IMapEntry |
Returns the key/value pair for this key.
|
|
entryKey ( object entry ) : object |
Returns the key to be passed to the comparator to sort the element.
|
|
rseq ( ) : ISeq |
Gets an
|
|
seq ( ) : ISeq |
Gets an
|
|
seq ( bool ascending ) : ISeq |
Returns an
|
|
seqFrom ( object key, bool ascending ) : ISeq |
Returns an The key need not be in the collection. If not present, the iteration will start with the first element with a key greater than (if asscending) or less than (if descending) the given key. |
|
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.
|
메소드 | 설명 | |
---|---|---|
Add ( Node t, object key, object val, clojure.lang.Box found ) : Node |
Add a node for a key
|
|
Append ( Node left, Node right ) : Node | ||
BalanceLeftDel ( object key, object val, Node del, Node right ) : Node | ||
BalanceRightDel ( object key, object val, Node left, Node del ) : Node | ||
LeftBalance ( object key, object val, Node ins, Node right ) : Node | ||
MakeBlack ( object key, object val, Node left, Node right ) : Black | ||
MakeRed ( object key, object val, Node left, Node right ) : Red | ||
NodeAt ( object key ) : Node |
Get the Node containing a key, or null if key not in tree.
|
|
PersistentTreeMap ( IComparer comp ) : System |
Initialize a
|
|
PersistentTreeMap ( IComparer comp, Node tree, int count, IPersistentMap meta ) : System |
Initialize a
|
|
PersistentTreeMap ( IPersistentMap meta, IComparer comp, Node tree, int count ) : System | ||
Remove ( Node t, object key, clojure.lang.Box found ) : Node | ||
Replace ( Node t, object key, object val ) : Node | ||
RightBalance ( object key, object val, Node left, Node ins ) : Node |
public DoCompare ( object k1, object k2 ) : int | ||
k1 | object | The first key. |
k2 | object | The second key. |
리턴 | int |
public PersistentTreeMap ( IPersistentMap meta, IComparer comp ) : System | ||
meta | IPersistentMap | |
comp | IComparer | |
리턴 | System |
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 comparator ( ) : System.Collections.IComparer | ||
리턴 | System.Collections.IComparer |
public containsKey ( object key ) : bool | ||
key | object | The key to test for membership |
리턴 | bool |
public static create ( IDictionary other ) : IPersistentMap | ||
other | IDictionary | The dictionary to initialize from. |
리턴 | IPersistentMap |
public static create ( IComparer comp, ISeq items ) : |
||
comp | IComparer | A comparison method. |
items | ISeq | The |
리턴 |
public static create ( ISeq items ) : |
||
items | ISeq | The |
리턴 |
public entryAt ( object key ) : IMapEntry | ||
key | object | The key to retrieve |
리턴 | IMapEntry |
public entryKey ( object entry ) : object | ||
entry | object | An element in the collection. |
리턴 | object |
public seq ( bool ascending ) : ISeq | ||
ascending | bool | A flag indicating if the iteration is ascending or descending. |
리턴 | ISeq |
public seqFrom ( object key, bool ascending ) : ISeq | ||
key | object | The key at which to start the iteration. |
ascending | bool | A flag indicating if the iteration is ascending or descending. |
리턴 | ISeq |
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 |