@Test public void testArray () { Table table = LuaUtils.array(10, 20, 30); assertNotNull(table); assertEquals(3, table.rawlen()); assertEquals(10l, table.rawget(1l)); assertEquals(20l, table.rawget(2l)); assertEquals(30l, table.rawget(3l)); }
public static Table array (Object... elements) { Table table = new DefaultTable(); for (int i = 0; i < elements.length; i++) { table.rawset(i + 1l, elements[i]); } return table; }
LuaUtils { public static Table array (Object... elements) { Table table = new DefaultTable(); for (int i = 0; i < elements.length; i++) { table.rawset(i + 1l, elements[i]); } return table; } }
LuaUtils { public static Table array (Object... elements) { Table table = new DefaultTable(); for (int i = 0; i < elements.length; i++) { table.rawset(i + 1l, elements[i]); } return table; } protected  LuaUtils(); }
LuaUtils { public static Table array (Object... elements) { Table table = new DefaultTable(); for (int i = 0; i < elements.length; i++) { table.rawset(i + 1l, elements[i]); } return table; } protected  LuaUtils(); static Table array(Object... elements); }
LuaUtils { public static Table array (Object... elements) { Table table = new DefaultTable(); for (int i = 0; i < elements.length; i++) { table.rawset(i + 1l, elements[i]); } return table; } protected  LuaUtils(); static Table array(Object... elements);  }