/** * Creates an ID generator using {@link AtomicInteger} initialized to the specified value. * * @return A new ID generator. */ public static IdGenerator<Integer> createIntGenerator() { return createIntGenerator(1); }
/** * Creates an ID generator using {@link AtomicInteger} initialized to the specified value. * * @return A new ID generator. */ public static IdGenerator<Integer> createIntGenerator() { return createIntGenerator(1); }
/** * Creates an ID generator using {@link AtomicInteger} initialized to the specified value. * * @return A new ID generator. */ public static IdGenerator<Integer> createIntGenerator() { return createIntGenerator(1); }
/** * Creates a new ID map with integer 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<Integer,T> createIntMap(Class<T> c, int initValue) { return create(c, IdGenerators.createIntGenerator(initValue)); }
/** * Creates a new ID map with integer 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<Integer,T> createIntMap(Class<T> c, int initValue) { return create(c, IdGenerators.createIntGenerator(initValue)); }
/** * Creates a new ID map with integer 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<Integer,T> createIntMap(Class<T> c, int initValue) { return create(c, IdGenerators.createIntGenerator(initValue)); }