return;内部関数から外部関数の値 (または単に) を返す方法はありますか?
私の質問は、この質問に似ています: Breaking out of nested loops in Javaですが、違いは、この質問では、質問者がネストされたループで外側のループを壊すことについて質問し、ネストされた関数で外側の関数を返すことについて質問していることです。
public void outerFunction ()
{
    runOnUiThread (new Runnable()
    {
        @Override
        public void run ()
        {
            // Here i want to return;, so the function will not continue after runOnUiThread
        }
    });
    // Code here should not run.
}