All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ulrice.databinding.converter.impl.Reverser Maven / Gradle / Ivy

The newest version!
package net.ulrice.databinding.converter.impl;

import net.ulrice.databinding.bufferedbinding.IFAttributeInfo;
import net.ulrice.databinding.converter.IFValueConverter;


public class Reverser implements IFValueConverter {
    private final IFValueConverter inner;
    
    public Reverser (IFValueConverter converter) {
        this.inner = converter;
    }
    
    @Override
    public Class getViewType (Class modelType) {
        return inner.getModelType(modelType);
    }

    @Override
    public Class getModelType(Class viewType) {
        return inner.getViewType(viewType);
    }

    
	@Override
	public M viewToModel(V o, IFAttributeInfo attributeInfo) {
		return inner.modelToView(o, attributeInfo);
	}

	@Override
	public V modelToView(M o, IFAttributeInfo attributeInfo) {
		return inner.viewToModel(o, attributeInfo);
	}

	@Override
	public boolean canHandle(Class modelType,
			Class viewType) {
		return inner.canHandle(viewType, modelType);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy