Class ResultHolder.Multiple<T>

  • Type Parameters:
    T -
    Enclosing class:
    ResultHolder<T>

    public static class ResultHolder.Multiple<T>
    extends ResultHolder<T>
    Container of multiple values of required type
    • Constructor Detail

      • Multiple

        public Multiple​(Class<T> requiredClass)
    • Method Detail

      • isMultiple

        public boolean isMultiple()
        Specified by:
        isMultiple in class ResultHolder<T>
        Returns:
        true if it accepts 0, 1 or more values. false if it accepts exactly one value. If none, then value is null
      • addResult

        public void addResult​(T value)
        Description copied from class: ResultHolder
        adds a result into this result holder
        Specified by:
        addResult in class ResultHolder<T>
        Parameters:
        value - a new value of result holder
      • getResult

        public List<T> getResult()