Class FactoryTransformer

    • Constructor Detail

      • FactoryTransformer

        public FactoryTransformer​(Factory factory)
        Deprecated.
        Constructor that performs no validation. Use getInstance if you want that.
        Parameters:
        factory - the factory to call, not null
    • Method Detail

      • getInstance

        public static Transformer getInstance​(Factory factory)
        Deprecated.
        Factory method that performs validation.
        Parameters:
        factory - the factory to call, not null
        Returns:
        the factory transformer
        Throws:
        IllegalArgumentException - if the factory is null
      • transform

        public Object transform​(Object input)
        Deprecated.
        Transforms the input by ignoring the input and returning the result of calling the decorated factory.
        Specified by:
        transform in interface Transformer
        Parameters:
        input - the input object to transform
        Returns:
        the transformed result
      • getFactory

        public Factory getFactory()
        Deprecated.
        Gets the factory.
        Returns:
        the factory
        Since:
        Commons Collections 3.1