C# Class clojure.lang.APersistentVector

Provides a basic implementation of IPersistentVector functionality.
Inheritance: AFn, IPersistentVector, Streamable, IList, IComparable
Afficher le fichier Open project: arohner/clojure-contrib Class Usage Examples

Méthodes publiques

Méthode Description
APersistentVector ( IPersistentMap meta ) : System

Initializes an APersistentVector with the given metadata.

Add ( object value ) : int
Clear ( ) : void
CompareTo ( object obj ) : int
Contains ( object value ) : bool
CopyTo ( Array array, int index ) : void
Equals ( object obj ) : bool

Determines whether the specified Object is equal to the current Object.

GetEnumerator ( ) : IEnumerator
GetHashCode ( ) : int

Compute a hash code for the current object.

IndexOf ( object value ) : int
Insert ( int index, object value ) : void
Remove ( object value ) : void
RemoveAt ( int index ) : void
ToString ( ) : string

Returns a string representing the object.

assoc ( object key, object val ) : Associative

Add a new key/value pair.

assocN ( int i, object val ) : IPersistentVector
cons ( object o ) : IPersistentVector
containsKey ( object key ) : bool

Test if the map contains a key.

count ( ) : int
doEquals ( IPersistentVector v, object obj ) : bool

Compares an IPersistentVector to another object for equality.

empty ( ) : IPersistentCollection
entryAt ( object key ) : IMapEntry

Returns the key/value pair for this key.

equiv ( object obj ) : bool

Determine if an object is equivalent to this (handles all collections).

invoke ( object arg1 ) : object
length ( ) : int
nth ( int i ) : object
peek ( ) : object

Peek at the top (first) element in the stack.

pop ( ) : IPersistentStack
rseq ( ) : ISeq

Gets an ISeq to travers the sequence in reverse.

seq ( ) : ISeq

Gets an ISeq to allow first/rest iteration through the collection.

stream ( ) : IStream
this ( int index ) : object
valAt ( object key ) : object

Gets the value associated with a key.

valAt ( object key, object notFound ) : object

Gets the value associated with a key.

Private Methods

Méthode Description
IPersistentCollection ( object o ) : IPersistentCollection

Returns a new collection that has the given element cons'd on front of the eixsting collection.

doEquiv ( IPersistentVector v, object obj ) : bool

Method Details

APersistentVector() public méthode

Initializes an APersistentVector with the given metadata.
public APersistentVector ( IPersistentMap meta ) : System
meta IPersistentMap The metadata to attach
Résultat System

Add() public méthode

public Add ( object value ) : int
value object
Résultat int

Clear() public méthode

public Clear ( ) : void
Résultat void

CompareTo() public méthode

public CompareTo ( object obj ) : int
obj object
Résultat int

Contains() public méthode

public Contains ( object value ) : bool
value object
Résultat bool

CopyTo() public méthode

public CopyTo ( Array array, int index ) : void
array System.Array
index int
Résultat void

Equals() public méthode

Determines whether the specified Object is equal to the current Object.
public Equals ( object obj ) : bool
obj object The Object to compare with the current Object.
Résultat bool

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetHashCode() public méthode

Compute a hash code for the current object.
public GetHashCode ( ) : int
Résultat int

IndexOf() public méthode

public IndexOf ( object value ) : int
value object
Résultat int

Insert() public méthode

public Insert ( int index, object value ) : void
index int
value object
Résultat void

Remove() public méthode

public Remove ( object value ) : void
value object
Résultat void

RemoveAt() public méthode

public RemoveAt ( int index ) : void
index int
Résultat void

ToString() public méthode

Returns a string representing the object.
public ToString ( ) : string
Résultat string

assoc() public méthode

Add a new key/value pair.
public assoc ( object key, object val ) : Associative
key object The key
val object The value
Résultat Associative

assocN() public abstract méthode

public abstract assocN ( int i, object val ) : IPersistentVector
i int
val object
Résultat IPersistentVector

cons() public abstract méthode

public abstract cons ( object o ) : IPersistentVector
o object
Résultat IPersistentVector

containsKey() public méthode

Test if the map contains a key.
public containsKey ( object key ) : bool
key object The key to test for membership
Résultat bool

count() public abstract méthode

public abstract count ( ) : int
Résultat int

doEquals() public static méthode

Compares an IPersistentVector to another object for equality.
public static doEquals ( IPersistentVector v, object obj ) : bool
v IPersistentVector The IPersistentVector to compare.
obj object The other object to compare.
Résultat bool

empty() public abstract méthode

public abstract empty ( ) : IPersistentCollection
Résultat IPersistentCollection

entryAt() public méthode

Returns the key/value pair for this key.
public entryAt ( object key ) : IMapEntry
key object The key to retrieve
Résultat IMapEntry

equiv() public méthode

Determine if an object is equivalent to this (handles all collections).
public equiv ( object obj ) : bool
obj object
Résultat bool

invoke() public méthode

public invoke ( object arg1 ) : object
arg1 object
Résultat object

length() public abstract méthode

public abstract length ( ) : int
Résultat int

nth() public abstract méthode

public abstract nth ( int i ) : object
i int
Résultat object

peek() public méthode

Peek at the top (first) element in the stack.
public peek ( ) : object
Résultat object

pop() public abstract méthode

public abstract pop ( ) : IPersistentStack
Résultat IPersistentStack

rseq() public méthode

Gets an ISeq to travers the sequence in reverse.
public rseq ( ) : ISeq
Résultat ISeq

seq() public méthode

Gets an ISeq to allow first/rest iteration through the collection.
public seq ( ) : ISeq
Résultat ISeq

stream() public méthode

public stream ( ) : IStream
Résultat IStream

this() public méthode

public this ( int index ) : object
index int
Résultat object

valAt() public méthode

Gets the value associated with a key.
public valAt ( object key ) : object
key object The key to look up.
Résultat object

valAt() public méthode

Gets the value associated with a key.
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.
Résultat object