@SuppressWarnings("deprecation") @Test public void testDeprecatedLifecyclingCallback() { GenericLifecycleObserver genericLifecycleObserver = new GenericLifecycleObserver() { @Override public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) { } }; LifecycleEventObserver observer = Lifecycling.getCallback(genericLifecycleObserver); assertThat(observer, is(observer)); }
@SuppressWarnings("deprecation") @Deprecated @NonNull static GenericLifecycleObserver getCallback(final Object object) { final LifecycleEventObserver observer = lifecycleEventObserver(object); return new GenericLifecycleObserver() { @Override public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) { observer.onStateChanged(source, event); } }; }
Lifecycling { @SuppressWarnings("deprecation") @Deprecated @NonNull static GenericLifecycleObserver getCallback(final Object object) { final LifecycleEventObserver observer = lifecycleEventObserver(object); return new GenericLifecycleObserver() { @Override public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) { observer.onStateChanged(source, event); } }; } }
Lifecycling { @SuppressWarnings("deprecation") @Deprecated @NonNull static GenericLifecycleObserver getCallback(final Object object) { final LifecycleEventObserver observer = lifecycleEventObserver(object); return new GenericLifecycleObserver() { @Override public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) { observer.onStateChanged(source, event); } }; } private  Lifecycling(); }
Lifecycling { @SuppressWarnings("deprecation") @Deprecated @NonNull static GenericLifecycleObserver getCallback(final Object object) { final LifecycleEventObserver observer = lifecycleEventObserver(object); return new GenericLifecycleObserver() { @Override public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) { observer.onStateChanged(source, event); } }; } private  Lifecycling(); static String getAdapterName(String className); }
Lifecycling { @SuppressWarnings("deprecation") @Deprecated @NonNull static GenericLifecycleObserver getCallback(final Object object) { final LifecycleEventObserver observer = lifecycleEventObserver(object); return new GenericLifecycleObserver() { @Override public void onStateChanged(@NonNull LifecycleOwner source, @NonNull Lifecycle.Event event) { observer.onStateChanged(source, event); } }; } private  Lifecycling(); static String getAdapterName(String className);  }