Class PipRequest

    • Constructor Detail

      • PipRequest

        public PipRequest​(InfoId infoId,
                          Parameter<?>... params)
        Instantiates a new pip request.
        Parameters:
        infoId - the id of the method to be executed
        params - parameters used for evaluation
      • PipRequest

        public PipRequest​(InfoId infoId,
                          ParameterList params)
        Instantiates a new pip request.
        Parameters:
        infoId - the id of the method to be executed
        params - parameters used for evaluation
    • Method Detail

      • addParameter

        public <R> void addParameter​(java.lang.String name,
                                     R value)
        Description copied from interface: ParameterListProvider
        Adds a parameter.
        Specified by:
        addParameter in interface ParameterListProvider
        Type Parameters:
        R - the generic type
        Parameters:
        name - the name of the parameter
        value - the value of the parameter
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getParameterForName

        public Parameter<?> getParameterForName​(java.lang.String name)
        Description copied from interface: ParameterListProvider
        Gets a parameter.
        Specified by:
        getParameterForName in interface ParameterListProvider
        Parameters:
        name - the name of the parameter
        Returns:
        the parameter with the given name, or null if it does not exist
      • getParameterValue

        public <R> R getParameterValue​(java.lang.String name,
                                       java.lang.Class<R> clazz)
        Description copied from interface: ParameterListProvider
        Gets a parameter value.
        Specified by:
        getParameterValue in interface ParameterListProvider
        Type Parameters:
        R - the generic type
        Parameters:
        name - the name of the parameter
        clazz - the value of the parameter
        Returns:
        the value of the parameter, or null if it does not exist