@Test public void testNextLong() throws Throwable { Space sp = new TSpace(); long result = SpaceUtil.nextLong(sp, ""); assertEquals(1, ((TSpace) sp).entries.size(), "(TSpace) sp.entries.size()"); assertEquals(1L, result, "result"); }
public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }  }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }  static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAndOut(Space sp, Object key, Object value); static void wipeAndOut(Space sp, Object key, Object value, long timeout); static long nextLong(Space sp, Object key); static boolean outIfEmpty(Space sp, Object key, Object value, long nrdTimeout, long outTimeout); static void outWhenEmpty(Space sp, Object key, Object value, long timeout); static void outWhenEmpty(Space sp, Object key, Object value); }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }  static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAndOut(Space sp, Object key, Object value); static void wipeAndOut(Space sp, Object key, Object value, long timeout); static long nextLong(Space sp, Object key); static boolean outIfEmpty(Space sp, Object key, Object value, long nrdTimeout, long outTimeout); static void outWhenEmpty(Space sp, Object key, Object value, long timeout); static void outWhenEmpty(Space sp, Object key, Object value);  }