Back to project page baracus-framework.
The source code is released under:
Apache License
If you think the Android project baracus-framework listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.mantucon.baracus.validation; /*from w w w .j a v a 2 s . c o m*/ import android.view.View; /** * Created with IntelliJ IDEA. * User: marcus * Date: 24.09.13 * Time: 10:21 * * Default Implementation for validators in order to avoid implementing viewToMessageParam * again and again and again. * */ public abstract class AbstractValidator<T> implements Validator<T> { /** * Default implementation to avoid every Validator implementing this function. * In most cases - if you do not want the view content used in the message - implementing this * abstract class instead of a view will save you some time * * @param v - the view * @return null; -> default implementation */ @Override public String[] viewToMessageParams(View v) { return null; } }