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

com.xenoamess.commons.main_thread_only.MainThreadOnly Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.13.1
Show newest version
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