package com.entrouvert.lasso; import java.util.*; class GObject { private long cptr; protected GObject(long ptr) { if (ptr == 0) { throw new RuntimeException("Error creating " + getClass().getName()); } cptr = ptr; } protected Map arrayToMap(Object[] arr) { Map map = new HashMap(); if (arr == null) return map; if (arr.length % 2 != 0) throw new IllegalArgumentException("arr must of an even size"); int i; for (i=0;i