C# 클래스 clojure.lang.APersistentVector

Provides a basic implementation of IPersistentVector functionality.
상속: AFn, IPersistentVector, Streamable, IList, IComparable
파일 보기 프로젝트 열기: arohner/clojure-contrib 1 사용 예제들

공개 메소드들

메소드 설명
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