/** * Creates an ID generator using {@link AtomicLong} initialized to the specified value. * * @return A new ID generator. */ public static IdGenerator<Long> createLongGenerator() { return createLongGenerator(1); } }
/** * Creates an ID generator using {@link AtomicLong} initialized to the specified value. * * @return A new ID generator. */ public static IdGenerator<Long> createLongGenerator() { return createLongGenerator(1); } }
/** * Creates an ID generator using {@link AtomicLong} initialized to the specified value. * * @return A new ID generator. */ public static IdGenerator<Long> createLongGenerator() { return createLongGenerator(1); } }
/** * Creates a new ID map with long keys with generator initialized to the specified value. * * @param c The value type. * @param initValue The initial value of the generator. * @return A new map. */ public static <T> IdMap<Long,T> createLongMap(Class<T> c, long initValue) { return create(c, IdGenerators.createLongGenerator(initValue)); }
/** * Creates a new ID map with long keys with generator initialized to the specified value. * * @param c The value type. * @param initValue The initial value of the generator. * @return A new map. */ public static <T> IdMap<Long,T> createLongMap(Class<T> c, long initValue) { return create(c, IdGenerators.createLongGenerator(initValue)); }
/** * Creates a new ID map with long keys with generator initialized to the specified value. * * @param c The value type. * @param initValue The initial value of the generator. * @return A new map. */ public static <T> IdMap<Long,T> createLongMap(Class<T> c, long initValue) { return create(c, IdGenerators.createLongGenerator(initValue)); }