diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/clojure/runtime/RT.java | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/src/org/clojure/runtime/RT.java b/src/org/clojure/runtime/RT.java index b55e89a2..619d7586 100644 --- a/src/org/clojure/runtime/RT.java +++ b/src/org/clojure/runtime/RT.java @@ -67,11 +67,47 @@ static public Iter iter(Object coll) } -static public Character ch(char c) +static public Character box(char x) { - return new Character(c); + return new Character(x); } +static public Boolean box(boolean x) + { + return Boolean.valueOf(x); + } + +static public Byte box(byte x) + { + return new Byte(x); + } + +static public Short box(short x) + { + return new Short(x); + } + +static public Integer box(int x) + { + return new Integer(x); + } + +static public Long box(long x) + { + return new Long(x); + } + +static public Float box(float x) + { + return new Float(x); + } + +static public Double box(double x) + { + return new Double(x); + } + + static public Cons cons(Object x, Cons y) { return new Cons(x, y); |