@Test public void checkNullIntent() { LocationEngineResult result = LocationEngineResult.extractResult(null); assertThat(result).isNull(); }
@Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; }
LocationEngineResult { @Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; } }
LocationEngineResult { @Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; } private  LocationEngineResult(List<Location> locations); }
LocationEngineResult { @Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; } private  LocationEngineResult(List<Location> locations); @NonNull static LocationEngineResult create(@Nullable Location location); @NonNull static LocationEngineResult create(@Nullable List<Location> locations); @Nullable Location getLastLocation(); List<Location> getLocations(); @Nullable static LocationEngineResult extractResult(Intent intent); }
LocationEngineResult { @Nullable public static LocationEngineResult extractResult(Intent intent) { LocationEngineResult result = null; if (isOnClasspath(GOOGLE_PLAY_LOCATION_RESULT)) { result = extractGooglePlayResult(intent); } return result == null ? extractAndroidResult(intent) : result; } private  LocationEngineResult(List<Location> locations); @NonNull static LocationEngineResult create(@Nullable Location location); @NonNull static LocationEngineResult create(@Nullable List<Location> locations); @Nullable Location getLastLocation(); List<Location> getLocations(); @Nullable static LocationEngineResult extractResult(Intent intent);  }