package com.google.gwt.lang {
import java.lang.reflect.Array__;
import java.lang.System;
import java.lang.JavaArray;
dynamic public class Array__ {
  public static function createFrom___3Ljava_lang_Object_2(array: JavaArray): JavaArray {
    return createFrom___3Ljava_lang_Object_2I(array, array.length);
  }
  public static function createFrom___3Ljava_lang_Object_2I(array: JavaArray, length: int): JavaArray {
    return JavaArray(java.lang.reflect.Array__.newInstance__Ljava_lang_Class_2I(Object(array).getClass__().getComponentType__(), length));
  }
  public static function cloneSubrange___3Ljava_lang_Object_2II(array: JavaArray, fromIndex: int, toIndex: int): JavaArray {
    var object: JavaArray = createFrom___3Ljava_lang_Object_2I(array, toIndex - fromIndex);
    System.arraycopy__Ljava_lang_Object_2ILjava_lang_Object_2II(array, fromIndex, object, toIndex, toIndex - fromIndex);
    return object;
  }
  public static function clone___3Ljava_lang_Object_2(array: JavaArray): JavaArray {
    return cloneSubrange___3Ljava_lang_Object_2II(array, 0, array.length);
  }
}
}
