From 0a06460b2417ffd6365cf13ef337dccda28bb2ae Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 12 Feb 2007 03:09:00 +0000 Subject: [PATCH] Widening. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4559 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/io/TypedArray.as | 36 ++++++++++++-------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/as/com/threerings/io/TypedArray.as b/src/as/com/threerings/io/TypedArray.as index 84b3eb819..d1503f60e 100644 --- a/src/as/com/threerings/io/TypedArray.as +++ b/src/as/com/threerings/io/TypedArray.as @@ -9,19 +9,8 @@ public dynamic class TypedArray extends Array implements Cloneable { /** - * Create a TypedArray - * - * @param jtype The java classname of this array, for example "[I" to - * represent an int[], or "[Ljava.lang.Object;" for Object[]. - */ - public function TypedArray (jtype :String) - { - _jtype = jtype; - } - - /** - * Convenience method to get the java type of an array containing - * objects of the specified class. + * Convenience method to get the java type of an array containing objects of the specified + * class. */ public static function getJavaType (of :Class) :String { @@ -38,20 +27,29 @@ public dynamic class TypedArray extends Array return "[[B"; } - var cname :String = Translations.getToServer( - ClassUtil.getClassName(of)); + var cname :String = Translations.getToServer(ClassUtil.getClassName(of)); return "[L" + cname + ";"; } /** - * A factory method to create a TypedArray for holding objects - * of the specified type. + * A factory method to create a TypedArray for holding objects of the specified type. */ public static function create (of :Class) :TypedArray { return new TypedArray(getJavaType(of)); } + /** + * Create a TypedArray + * + * @param jtype The java classname of this array, for example "[I" to represent an int[], or + * "[Ljava.lang.Object;" for Object[]. + */ + public function TypedArray (jtype :String) + { + _jtype = jtype; + } + public function getJavaType () :String { return _jtype; @@ -68,8 +66,8 @@ public dynamic class TypedArray extends Array return copy; } - /** The 'type' of this array, which doesn't really mean anything - * except gives it a clue as to how to stream to our server. */ + /** The 'type' of this array, which doesn't really mean anything except gives it a clue as to + * how to stream to our server. */ protected var _jtype :String; } }