Package com.im.ijc.core.api.util
Class IdGenerator<C,V>
- java.lang.Object
-
- com.im.ijc.core.api.util.IdGenerator<C,V>
-
- Type Parameters:
C
- category typeV
- value type
public class IdGenerator<C,V> extends java.lang.Object
Assigns sequential numerical ids for values, unique within a category.
-
-
Constructor Summary
Constructors Constructor Description IdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId(C category, V value)
Get unique id for combination of category and value.
-