C# Класс clojure.lang.APersistentVector

Provides a basic implementation of IPersistentVector functionality.
Наследование: AFn, IPersistentVector, Streamable, IList, IComparable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

APersistentVector() публичный Метод

Initializes an APersistentVector with the given metadata.
public APersistentVector ( IPersistentMap meta ) : System
meta IPersistentMap The metadata to attach
Результат System

Add() публичный Метод

public Add ( object value ) : int
value object
Результат int

Clear() публичный Метод

public Clear ( ) : void
Результат void

CompareTo() публичный Метод

public CompareTo ( object obj ) : int
obj object
Результат int

Contains() публичный Метод

public Contains ( object value ) : bool
value object
Результат bool

CopyTo() публичный Метод

public CopyTo ( Array array, int index ) : void
array System.Array
index int
Результат void

Equals() публичный Метод

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.
Результат bool

GetEnumerator() публичный Метод

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetHashCode() публичный Метод

Compute a hash code for the current object.
public GetHashCode ( ) : int
Результат int

IndexOf() публичный Метод

public IndexOf ( object value ) : int
value object
Результат int

Insert() публичный Метод

public Insert ( int index, object value ) : void
index int
value object
Результат void

Remove() публичный Метод

public Remove ( object value ) : void
value object
Результат void

RemoveAt() публичный Метод

public RemoveAt ( int index ) : void
index int
Результат void

ToString() публичный Метод

Returns a string representing the object.
public ToString ( ) : string
Результат string

assoc() публичный Метод

Add a new key/value pair.
public assoc ( object key, object val ) : Associative
key object The key
val object The value
Результат Associative

assocN() публичный абстрактный Метод

public abstract assocN ( int i, object val ) : IPersistentVector
i int
val object
Результат IPersistentVector

cons() публичный абстрактный Метод

public abstract cons ( object o ) : IPersistentVector
o object
Результат IPersistentVector

containsKey() публичный Метод

Test if the map contains a key.
public containsKey ( object key ) : bool
key object The key to test for membership
Результат bool

count() публичный абстрактный Метод

public abstract count ( ) : int
Результат int

doEquals() публичный статический Метод

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.
Результат bool

empty() публичный абстрактный Метод

public abstract empty ( ) : IPersistentCollection
Результат IPersistentCollection

entryAt() публичный Метод

Returns the key/value pair for this key.
public entryAt ( object key ) : IMapEntry
key object The key to retrieve
Результат IMapEntry

equiv() публичный Метод

Determine if an object is equivalent to this (handles all collections).
public equiv ( object obj ) : bool
obj object
Результат bool

invoke() публичный Метод

public invoke ( object arg1 ) : object
arg1 object
Результат object

length() публичный абстрактный Метод

public abstract length ( ) : int
Результат int

nth() публичный абстрактный Метод

public abstract nth ( int i ) : object
i int
Результат object

peek() публичный Метод

Peek at the top (first) element in the stack.
public peek ( ) : object
Результат object

pop() публичный абстрактный Метод

public abstract pop ( ) : IPersistentStack
Результат IPersistentStack

rseq() публичный Метод

Gets an ISeq to travers the sequence in reverse.
public rseq ( ) : ISeq
Результат ISeq

seq() публичный Метод

Gets an ISeq to allow first/rest iteration through the collection.
public seq ( ) : ISeq
Результат ISeq

stream() публичный Метод

public stream ( ) : IStream
Результат IStream

this() публичный Метод

public this ( int index ) : object
index int
Результат object

valAt() публичный Метод

Gets the value associated with a key.
public valAt ( object key ) : object
key object The key to look up.
Результат object

valAt() публичный Метод

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.
Результат object