public static void setHologram(FloatArrayMirror mirror, int index, float f) throws Throwable { try { mirror.setFloat(index, f); } catch (ArrayIndexOutOfBoundsException e) { throw throwableAsHologram(mirror.getClassMirror().getVM(), e); } catch (ArrayStoreException e) { throw throwableAsHologram(mirror.getClassMirror().getVM(), e); } }
public static float getHologram(FloatArrayMirror mirror, int index) throws Throwable { try { return mirror.getFloat(index); } catch (ArrayIndexOutOfBoundsException e) { throw throwableAsHologram(mirror.getClassMirror().getVM(), e); } }