code: public long getSunTime(double desired, boolean next)
      {
          return timeOfAngle( new AngleFunc() { @Override
          public double eval() { return getSunLongitude(); } },
                              desired,
                              TROPICAL_YEAR,
                              MINUTE_MS,
                              next);
      }
docs: Find the next time at which the sun's ecliptic longitude will have
  the desired value.
  @hide draft / provisional / internal are hidden on Android