
com.xenoamess.commons.main_thread_only.MainThreadOnly Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commonx Show documentation
Show all versions of commonx Show documentation
Commonx, a package of Java utility classes for the classes that
are in java's hierarchy, or are considered to be so standard as to
justify existence in java.
package com.xenoamess.commons.main_thread_only;
import java.lang.annotation.*;
/**
* If the annotation {@code @MainThreadOnly} is present on the declaration
* of a function A, then function {@code @A} must be called by main thread.
*
* Other wise, an error might be thrown from inside function {@code @A}.
*
* @author XenoAmess
*/
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MainThreadOnly {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy