Mercurial > lasercutter
comparison src/clojure/lang/MapEntry.java @ 10:ef7dbbd6452c
added clojure source goodness
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 21 Aug 2010 06:25:44 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:35cf337adfcf | 10:ef7dbbd6452c |
---|---|
1 /** | |
2 * Copyright (c) Rich Hickey. All rights reserved. | |
3 * The use and distribution terms for this software are covered by the | |
4 * Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | |
5 * which can be found in the file epl-v10.html at the root of this distribution. | |
6 * By using this software in any fashion, you are agreeing to be bound by | |
7 * the terms of this license. | |
8 * You must not remove this notice, or any other, from this software. | |
9 **/ | |
10 | |
11 package clojure.lang; | |
12 | |
13 import java.util.Iterator; | |
14 | |
15 public class MapEntry extends AMapEntry{ | |
16 final Object _key; | |
17 final Object _val; | |
18 | |
19 public MapEntry(Object key, Object val){ | |
20 this._key = key; | |
21 this._val = val; | |
22 } | |
23 | |
24 public Object key(){ | |
25 return _key; | |
26 } | |
27 | |
28 public Object val(){ | |
29 return _val; | |
30 } | |
31 | |
32 public Object getKey(){ | |
33 return key(); | |
34 } | |
35 | |
36 public Object getValue(){ | |
37 return val(); | |
38 } | |
39 | |
40 } |