Class AbstractConverter<I,​O>

    • Constructor Detail

      • AbstractConverter

        public AbstractConverter()
    • Method Detail

      • populateInputCandidates

        public void populateInputCandidates​(Collection<Object> objects)
        Description copied from interface: Converter
        Populates the given collection with objects which are known to exist, and which are usable as inputs for this converter.

        That is: each such object added to the collection would return true if queried with converter.canConvert(object), and hence would produce an output of type Converter.getOutputType() if passed to converter.convert(object).

        The means by which "known objects" are determined is implementation dependent, although the most typical use case is to query the ObjectService for known objects of type Converter.getInputType(), and return those. But other behaviors are possible, depending on the converter implementation.

        Specified by:
        populateInputCandidates in interface Converter<I,​O>
        Parameters:
        objects - an initialized collection into which appropriate objects will be inserted.