
net.ulrice.databinding.converter.impl.Reverser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ulrice-databinding Show documentation
Show all versions of ulrice-databinding Show documentation
Ulrice-Databinding is a databinding-extension for Ulrice
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 extends V> getViewType (Class extends M> modelType) {
return inner.getModelType(modelType);
}
@Override
public Class extends M> getModelType(Class extends V> 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 extends Object> modelType,
Class extends Object> viewType) {
return inner.canHandle(viewType, modelType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy