Class ExtenderType<T extends IExtendableResourceResult>

  • Type Parameters:
    T - the type of elements in this ExtenderType (example: Hit)

    public class ExtenderType<T extends IExtendableResourceResult>
    extends java.lang.Object
    Generic service for reading data extend
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtenderType​(java.lang.Class<T> t, java.lang.String strType)
      Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))
      ExtenderType​(java.lang.Class<T> t, java.lang.String strType, java.util.function.BiFunction<java.lang.String,​java.lang.String,​java.util.List<T>> getInfoExtender, java.util.function.BiFunction<java.util.List<java.lang.String>,​java.lang.String,​java.util.List<T>> getInfoExtenderByList, java.util.function.BinaryOperator<java.lang.String> getInfoForExport, java.util.function.BinaryOperator<java.lang.String> getInfoForRecap)
      Constructor ExtenderType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<T> getClassType()
      Get the class type
      java.util.List<T> getInfoExtender​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get optional extenderType(hit or rate) information object (example: Optional or Optional..)
      java.util.List<T> getInfoExtenderByList​(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
      Get list extenderType information object (example: List or List..)
      java.lang.String getInfoForExport​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get the information value associate to the extenderType to export in the file export
      java.lang.String getInfoForRecap​(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
      Get the information value associate to the extenderType to write in the recap
      java.lang.String getType()
      Get type of the extender
      void setInfoExtender​(java.util.function.BiFunction<java.lang.String,​java.lang.String,​java.util.List<T>> biFunctionInfoExtender)
      Sets the BiFunction to get the optional extender type information object
      void setInfoExtenderByList​(java.util.function.BiFunction<java.util.List<java.lang.String>,​java.lang.String,​java.util.List<T>> biFunctionInfoExtender)
      Sets the BiFunction to get the list of extender type information object
      void setInfoForExport​(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForExport)
      Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file export
      void setInfoForRecap​(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForRecap)
      Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtenderType

        public ExtenderType​(java.lang.Class<T> t,
                            java.lang.String strType)
        Constructor (example: new ExtenderType (HitResourceExtender.EXTENDER_TYPE))
        Parameters:
        Class - the Class type
        strType - the type of extender
      • ExtenderType

        public ExtenderType​(java.lang.Class<T> t,
                            java.lang.String strType,
                            java.util.function.BiFunction<java.lang.String,​java.lang.String,​java.util.List<T>> getInfoExtender,
                            java.util.function.BiFunction<java.util.List<java.lang.String>,​java.lang.String,​java.util.List<T>> getInfoExtenderByList,
                            java.util.function.BinaryOperator<java.lang.String> getInfoForExport,
                            java.util.function.BinaryOperator<java.lang.String> getInfoForRecap)
        Constructor ExtenderType
        Parameters:
        Class - the Class type of the output arguments of the getInfoExtende and getInfoExtenderByList
        strType - the type of extender
        getInfoExtender - the BiFunction to get the optional extender type information object
        getInfoExtenderByList - the BiFunction to get the list of extender type information object
        getInfoForExport - the BinaryOperator to get the information value associate to the ExtenderType to export in the file export
        getInfoForRecap - the BinaryOperator to get the information value associate to the ExtenderType to write in the recap
        See Also:
        constructor example
    • Method Detail

      • getType

        public java.lang.String getType()
        Get type of the extender
        Returns:
        _strType
      • getClassType

        public java.lang.Class<T> getClassType()
        Get the class type
        Returns:
        _t
      • getInfoForExport

        public java.lang.String getInfoForExport​(java.lang.String strIdExtendableResource,
                                                 java.lang.String strExtendableResourceType)
                                          throws InfoExtenderException
        Get the information value associate to the extenderType to export in the file export
        Parameters:
        strIdExtendableResource - the idExtendableResource
        strExtendableResourceType - the extendableResourceType
        Returns:
        the information value associate to the extenderType to export in the file export
        Throws:
        InfoExtenderException - the InfoExtenderException
      • getInfoForRecap

        public java.lang.String getInfoForRecap​(java.lang.String strIdExtendableResource,
                                                java.lang.String strExtendableResourceType)
                                         throws InfoExtenderException
        Get the information value associate to the extenderType to write in the recap
        Parameters:
        strIdExtendableResource - the idExtendableResource
        strExtendableResourceType - the extendableResourceType
        Returns:
        the information value associate to the extenderType to write in the recap
        Throws:
        InfoExtenderException - the InfoExtenderException
      • getInfoExtender

        public java.util.List<T> getInfoExtender​(java.lang.String strIdExtendableResource,
                                                 java.lang.String strExtendableResourceType)
                                          throws InfoExtenderException
        Get optional extenderType(hit or rate) information object (example: Optional or Optional..)
        Parameters:
        strIdExtendableResource - the idExtendableResource
        strExtendableResourceType - the extendableResourceType
        T - the extenderType information object (example: Hit)
        Returns:
        the optional extenderType(example: hit or rate) information object (example: Optional or Optional..)
        Throws:
        InfoExtenderException - the InfoExtenderException
      • getInfoExtenderByList

        public java.util.List<T> getInfoExtenderByList​(java.util.List<java.lang.String> listIdExtendableResource,
                                                       java.lang.String strExtendableResourceType)
                                                throws InfoExtenderException
        Get list extenderType information object (example: List or List..)
        Parameters:
        listIdExtendableResource - the list of IdExtendableResource
        strExtendableResourceType - the extendableResourceType
        T - the extenderType information object (example: Hit)
        Returns:
        list of extender type information object (example: List or List..)
        Throws:
        InfoExtenderException - the InfoExtenderException
      • setInfoForExport

        public void setInfoForExport​(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForExport)
        Sets the BinaryOperator to get the information value associate to the ExtenderType to export in the file export
        Parameters:
        binaryOperatorInfoForExport - the binaryOperatorInfoForExport
      • setInfoForRecap

        public void setInfoForRecap​(java.util.function.BinaryOperator<java.lang.String> binaryOperatorInfoForRecap)
        Sets the BinaryOperator to get the information value associate to the ExtenderType to write in the recap
        Parameters:
        binaryOperatorInfoForRecap - the binaryOperatorInfoForRecap
      • setInfoExtender

        public void setInfoExtender​(java.util.function.BiFunction<java.lang.String,​java.lang.String,​java.util.List<T>> biFunctionInfoExtender)
        Sets the BiFunction to get the optional extender type information object
        Parameters:
        T - the extenderType information object (example: Hit)
        biFunctionInfoExtender - the biFunctionInfoExtender
      • setInfoExtenderByList

        public void setInfoExtenderByList​(java.util.function.BiFunction<java.util.List<java.lang.String>,​java.lang.String,​java.util.List<T>> biFunctionInfoExtender)
        Sets the BiFunction to get the list of extender type information object
        Parameters:
        T - the extenderType information object (example: Hit)
        biFunctionInfoExtender - the biFunctionInfoExtender