Example usage for org.apache.commons.collections15 ExtendedTransformer getDestinationType

List of usage examples for org.apache.commons.collections15 ExtendedTransformer getDestinationType

Introduction

In this page you can find the example usage for org.apache.commons.collections15 ExtendedTransformer getDestinationType.

Prototype

Class<O> getDestinationType();

Source Link

Usage

From source file:org.springframework.core.convert.support.ExtendedConversionUtils.java

public static final <S, T> ExtendedConverter<S, T> toConverter(final ExtendedTransformer<S, T> xformer) {
    Assert.notNull(xformer, "No transformer");
    return new AbstractExtendedConverter<S, T>(xformer.getSourceType(), xformer.getDestinationType()) {
        @Override/* w  w  w  .ja  v a  2 s .  c  om*/
        public T convert(S source) {
            return xformer.transform(source);
        }
    };
}