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

pocketknife.BundleBuilder Maven / Gradle / Ivy

The newest version!
package pocketknife;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.CLASS;

/**
 * Denotes an interface method that will return an {@link android.content.Bundle} with the variables as arguments.
 * 

 *     {@literal @}BundleBuilder
 *     Bundle buildBundle(int i);
 * 
* * Generated code will look something like this *

 *     public static final String ARG_I = "ARG_I";
 *
 *     Bundle buildBundle(int i) {
 *         Bundle bundle = new Bundle();
 *         intent.putExtra(ARG_I, i);
 *         return bundle;
 *     }
 * 
*/ @Retention(CLASS) @Target(METHOD) public @interface BundleBuilder { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy