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.orm; /* w w w . j a v a 2 s .c o m*/ /** * Crash-avoiding helper. Use this Reference to instantiate any * Reference. Instead of dealing NPE due to null references You will simply * get a Null value. Makes handling a little bit easier. * <p/> * Created by marcus on 12.07.14. */ public final class NullReference<T extends AbstractModelBase> implements Reference<T> { @Override public final T getObject() { return null; } @Override public final Long getObjectRefId() { return null; } }