C# 클래스 clojure.lang.APersistentSet

상속: AFn, IPersistentSet, ICollection
파일 보기 프로젝트 열기: arohner/clojure-contrib

보호된 프로퍼티들

프로퍼티 타입 설명
_hash int
_impl IPersistentMap

공개 메소드들

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

Computes a hash code for the current object.

The hash code is value-based (based on the items in the set). Once computed, the value is cached.

ToString ( ) : string

Returns a string representing the current object.

cons ( object o ) : IPersistentCollection
contains ( object key ) : bool

Test if the set contains the key.

count ( ) : int

Gets the number of items in the collection.

disjoin ( object key ) : IPersistentSet

Get a set with the given item removed.

empty ( ) : IPersistentCollection
equiv ( object o ) : bool

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

get ( object key ) : object

Get the value for the key (= the key itself, or null if not present).

invoke ( object arg1 ) : object
seq ( ) : ISeq

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

보호된 메소드들

메소드 설명
APersistentSet ( IPersistentMap meta, IPersistentMap impl ) : System

Initialize an APersistentSet from the metadata map and the data map.

메소드 상세

APersistentSet() 보호된 메소드

Initialize an APersistentSet from the metadata map and the data map.
protected APersistentSet ( IPersistentMap meta, IPersistentMap impl ) : System
meta IPersistentMap The metadata
impl IPersistentMap The underlying implementation map
리턴 System

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() 공개 메소드

Computes a hash code for the current object.
The hash code is value-based (based on the items in the set). Once computed, the value is cached.
public GetHashCode ( ) : int
리턴 int

ToString() 공개 메소드

Returns a string representing the current object.
public ToString ( ) : string
리턴 string

cons() 공개 추상적인 메소드

public abstract cons ( object o ) : IPersistentCollection
o object
리턴 IPersistentCollection

contains() 공개 메소드

Test if the set contains the key.
public contains ( object key ) : bool
key object The value to test for membership in the set.
리턴 bool

count() 공개 메소드

Gets the number of items in the collection.
public count ( ) : int
리턴 int

disjoin() 공개 추상적인 메소드

Get a set with the given item removed.
public abstract disjoin ( object key ) : IPersistentSet
key object The item to remove.
리턴 IPersistentSet

empty() 공개 추상적인 메소드

public abstract empty ( ) : IPersistentCollection
리턴 IPersistentCollection

equiv() 공개 메소드

Determine if an object is equivalent to this (handles all collections).
public equiv ( object o ) : bool
o object The object to compare.
리턴 bool

get() 공개 메소드

Get the value for the key (= the key itself, or null if not present).
public get ( object key ) : object
key object The value to test for membership in the set.
리턴 object

invoke() 공개 메소드

public invoke ( object arg1 ) : object
arg1 object
리턴 object

seq() 공개 메소드

Gets an ISeq to allow first/rest iteration through the collection.
public seq ( ) : ISeq
리턴 ISeq

프로퍼티 상세

_hash 보호되어 있는 프로퍼티

Caches the hash code, when computed.
protected int _hash
리턴 int

_impl 보호되어 있는 프로퍼티

The underlying map that contains the set's elements.
protected IPersistentMap _impl
리턴 IPersistentMap