C# 클래스 clojure.lang.MapEntry

Implements an (immutable) entry in a persistent map.

In built-in BCL collections, this is a struct. We cannot do this here because of all the other baggage this carries (see AMapEntry.

Provides storage for a key and a value. What more can be said?

상속: clojure.lang.AMapEntry
파일 보기 프로젝트 열기: clojure/clojure-clr 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_key object
_val object

공개 메소드들

메소드 설명
MapEntry ( object key, object val )

Initialize a MapEntry with a key and a value.

key ( ) : object

Get the key in a key/value pair.

val ( ) : object

Get the value in a key/value pair.

비공개 메소드들

메소드 설명
create ( object key, object val ) : MapEntry

메소드 상세

MapEntry() 공개 메소드

Initialize a MapEntry with a key and a value.
public MapEntry ( object key, object val )
key object The key.
val object The value.

key() 공개 메소드

Get the key in a key/value pair.
public key ( ) : object
리턴 object

val() 공개 메소드

Get the value in a key/value pair.
public val ( ) : object
리턴 object

프로퍼티 상세

_key 보호되어 있는 프로퍼티

The key.
protected object _key
리턴 object

_val 보호되어 있는 프로퍼티

The value.
protected object _val
리턴 object