Class ListParseResult<E>

java.lang.Object
org.apache.sshd.common.config.ListParseResult<E>
Type Parameters:
E - Type of list item
Direct Known Subclasses:
FactoriesListParseResult, NamedResourceListParseResult

public abstract class ListParseResult<E> extends Object
Used to hold the result of parsing a list of value. Such result contains known and unknown values - which are accessible via the respective getParsedValues() and getUnsupportedValues() methods. Note: the returned Lists may be un-modifiable, so it is recommended to avoid attempting changing the, returned list(s)
  • Field Details

    • parsed

      private final List<E> parsed
    • unsupported

      private final List<String> unsupported
  • Constructor Details

    • ListParseResult

      protected ListParseResult(List<E> parsed, List<String> unsupported)
  • Method Details

    • getParsedValues

      public final List<E> getParsedValues()
      Returns:
      The List of successfully parsed value instances in the same order as they were encountered during parsing
    • getUnsupportedValues

      public List<String> getUnsupportedValues()
      Returns:
      A List of unknown/unsupported configuration values for the factories
    • toString

      public String toString()
      Overrides:
      toString in class Object