Class FixedParam<T>

    • Field Detail

      • value

        protected final T value
      • defaultValue

        protected final T defaultValue
    • Constructor Detail

      • FixedParam

        protected FixedParam​(Class<T> paramType,
                             T value,
                             T defaultValue)
    • Method Detail

      • isDefault

        public boolean isDefault()
        Description copied from class: MethodParam
        Allows checking if a parameter is set to the default value.

        This is usually used in MethodCallBuilder instances to check if a parameter is set or not to some custom value, and some method chaingin is required or not.

        This method may, and is, overwritten by subclasses depending on the semantics of each type of parameter.

        Overrides:
        isDefault in class MethodParam
        Returns:
        true when the value is the default one or not specified (null), false otherwise.
      • getValue

        public T getValue()
        Gets the value associated to the parameter.
        Returns:
        the value.