类 RootHelper


  • public class RootHelper
    extends Object
    作者:
    Steve Ebersole
    • 字段详细资料

      • INSTANCE

        public static final RootHelper INSTANCE
        Singleton access
    • 方法详细资料

      • extractRootReturn

        public <T extends Return> T extractRootReturn​(LoadPlan loadPlan,
                                                      Class<T> returnType)
        Extract the root return of the LoadPlan, assuming there is just one.
        类型参数:
        T - The parameterized type of the specific Return type expected
        参数:
        loadPlan - The LoadPlan from which to extract the root return
        returnType - The Return type expected, passed as an argument
        返回:
        The root Return
        抛出:
        IllegalStateException - If there is no root, more than one root or the single root is not of the expected type.
      • extractRootQuerySpace

        public <T extends QuerySpace> T extractRootQuerySpace​(QuerySpaces querySpaces,
                                                              Class<EntityQuerySpace> returnType)
        Extract the root QuerySpace of the LoadPlan, assuming there is just one.
        参数:
        querySpaces - The QuerySpaces from which to extract the root.
        returnType - The QuerySpace type expected, passed as an argument
        返回:
        The root QuerySpace
        抛出:
        IllegalStateException - If there is no root, more than one root or the single root is not of the expected type.