Package tools.mdsd.somde.services
Class Service.RegistrationType<ObjectType,KeyType>
- java.lang.Object
-
- tools.mdsd.somde.services.Service.RegistrationType<ObjectType,KeyType>
-
-
Constructor Summary
Constructors Constructor Description RegistrationType(Class<KeyType> keyType, Function<ObjectType,KeyType> keyExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyType
apply(ObjectType t)
Class<KeyType>
getKeyType()
-
-
-
Constructor Detail
-
RegistrationType
public RegistrationType(Class<KeyType> keyType, Function<ObjectType,KeyType> keyExtractor)
-
-
Method Detail
-
apply
public KeyType apply(ObjectType t)
- Specified by:
apply
in interfaceFunction<ObjectType,KeyType>
-
-