T - the type of elements in this ExtenderType (example: Hit)public class ExtenderType<T extends IExtendableResourceResult> extends Object
| Constructor and Description |
|---|
ExtenderType(Class<T> t,
String strType)
Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))
|
ExtenderType(Class<T> t,
String strType,
BiFunction<String,String,List<T>> getInfoExtender,
BiFunction<List<String>,String,List<T>> getInfoExtenderByList,
BinaryOperator<String> getInfoForExport,
BinaryOperator<String> getInfoForRecap)
Constructor ExtenderType
|
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getClassType()
Get the class type
|
List<T> |
getInfoExtender(String strIdExtendableResource,
String strExtendableResourceType)
Get optional extenderType(hit or rate) information object (example: Optional
|
List<T> |
getInfoExtenderByList(List<String> listIdExtendableResource,
String strExtendableResourceType)
Get list extenderType information object (example: List
|
String |
getInfoForExport(String strIdExtendableResource,
String strExtendableResourceType)
Get the information value associate to the extenderType to export in the file export
|
String |
getInfoForRecap(String strIdExtendableResource,
String strExtendableResourceType)
Get the information value associate to the extenderType to write in the recap
|
String |
getType()
Get type of the extender
|
void |
setInfoExtender(BiFunction<String,String,List<T>> biFunctionInfoExtender)
Sets the BiFunction to get the optional extender type information object
|
void |
setInfoExtenderByList(BiFunction<List<String>,String,List<T>> biFunctionInfoExtender)
Sets the BiFunction to get the list of extender type information object
|
void |
setInfoForExport(BinaryOperator<String> binaryOperatorInfoForExport)
Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file export
|
void |
setInfoForRecap(BinaryOperator<String> binaryOperatorInfoForRecap)
Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap
|
public ExtenderType(Class<T> t, String strType)
Class - the Class typestrType - the type of extenderpublic ExtenderType(Class<T> t, String strType, BiFunction<String,String,List<T>> getInfoExtender, BiFunction<List<String>,String,List<T>> getInfoExtenderByList, BinaryOperator<String> getInfoForExport, BinaryOperator<String> getInfoForRecap)
Class - the Class type of the output arguments of the getInfoExtende and getInfoExtenderByListstrType - the type of extendergetInfoExtender - the BiFunction to get the optional extender type information objectgetInfoExtenderByList - the BiFunction to get the list of extender type information objectgetInfoForExport - the BinaryOperator to get the information value associate to the ExtenderType to export in the file exportgetInfoForRecap - the BinaryOperator to get the information value associate to the ExtenderType to write in the recapconstructor examplepublic String getType()
public String getInfoForExport(String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypeInfoExtenderException - the InfoExtenderExceptionpublic String getInfoForRecap(String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypeInfoExtenderException - the InfoExtenderExceptionpublic List<T> getInfoExtender(String strIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
strIdExtendableResource - the idExtendableResourcestrExtendableResourceType - the extendableResourceTypeT - the extenderType information object (example: Hit)InfoExtenderException - the InfoExtenderExceptionpublic List<T> getInfoExtenderByList(List<String> listIdExtendableResource, String strExtendableResourceType) throws InfoExtenderException
listIdExtendableResource - the list of IdExtendableResourcestrExtendableResourceType - the extendableResourceTypeT - the extenderType information object (example: Hit)InfoExtenderException - the InfoExtenderExceptionpublic void setInfoForExport(BinaryOperator<String> binaryOperatorInfoForExport)
binaryOperatorInfoForExport - the binaryOperatorInfoForExportpublic void setInfoForRecap(BinaryOperator<String> binaryOperatorInfoForRecap)
binaryOperatorInfoForRecap - the binaryOperatorInfoForRecappublic void setInfoExtender(BiFunction<String,String,List<T>> biFunctionInfoExtender)
T - the extenderType information object (example: Hit)biFunctionInfoExtender - the biFunctionInfoExtenderpublic void setInfoExtenderByList(BiFunction<List<String>,String,List<T>> biFunctionInfoExtender)
T - the extenderType information object (example: Hit)biFunctionInfoExtender - the biFunctionInfoExtenderCopyright © 2022 City of Paris. All rights reserved.