C# Class clojure.lang.APersistentSet

Inheritance: AFn, IPersistentSet, ICollection
Afficher le fichier Open project: arohner/clojure-contrib

Protected Properties

Свойство Type Description
_hash int
_impl IPersistentMap

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
APersistentSet ( IPersistentMap meta, IPersistentMap impl ) : System

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

Method Details

APersistentSet() protected méthode

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
Résultat System

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

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
Résultat int

ToString() public méthode

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

cons() public abstract méthode

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

contains() public méthode

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

count() public méthode

Gets the number of items in the collection.
public count ( ) : int
Résultat int

disjoin() public abstract méthode

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

empty() public abstract méthode

public abstract empty ( ) : IPersistentCollection
Résultat IPersistentCollection

equiv() public méthode

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

get() public méthode

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.
Résultat object

invoke() public méthode

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

seq() public méthode

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

Property Details

_hash protected_oe property

Caches the hash code, when computed.
protected int _hash
Résultat int

_impl protected_oe property

The underlying map that contains the set's elements.
protected IPersistentMap _impl
Résultat IPersistentMap