|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdFactory
A factory for creating new, unique Id
for an object.
Field Summary | |
---|---|
static Class<IdFactory> |
IdFactory
|
Method Summary | |
---|---|
Id |
createId()
Creates a new id. |
Id |
createId(Class<?> objectClass)
Created a new id for an object of the given class. |
Id |
createId(Class<?> objectClass,
Object object)
Created a new id for the given object of the given class. |
Field Detail |
---|
static final Class<IdFactory> IdFactory
Method Detail |
---|
@Nonnull Id createId()
@Nonnull Id createId(@Nonnull Class<?> objectClass)
objectClass
- the class of the object for which the Id
is created
@Nonnull Id createId(@Nonnull Class<?> objectClass, @Nonnull Object object)
Class
for cases in which the object
implements multiple interfaces and one wants to specify the referenced one.
object
- the object for which the Id
objectClass
- the class of the object for which the Id
is created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |