Mercurial > lasercutter
view src/clojure/lang/Obj.java @ 10:ef7dbbd6452c
added clojure source goodness
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 21 Aug 2010 06:25:44 -0400 |
parents | |
children |
line wrap: on
line source
1 /**2 * Copyright (c) Rich Hickey. All rights reserved.3 * The use and distribution terms for this software are covered by the4 * 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 by7 * the terms of this license.8 * You must not remove this notice, or any other, from this software.9 **/11 /* rich Mar 25, 2006 3:44:58 PM */13 package clojure.lang;15 import java.io.Serializable;17 public abstract class Obj implements IObj, Serializable {19 final IPersistentMap _meta;21 public Obj(IPersistentMap meta){22 this._meta = meta;23 }25 public Obj(){26 _meta = null;27 }29 final public IPersistentMap meta(){30 return _meta;31 }33 abstract public Obj withMeta(IPersistentMap meta);35 }