@Test public void testKeyFromFieldNotNull() { Field field = TestModels.MixedPublicFields.class.getDeclaredFields()[0]; assertNotNull(Lyra.getKeyFromField(field)); }
@NonNull public static String getKeyFromField(@NonNull Field field) { return field.getDeclaringClass().getName() + '#' + field.getName(); }
Lyra { @NonNull public static String getKeyFromField(@NonNull Field field) { return field.getDeclaringClass().getName() + '#' + field.getName(); } }
Lyra { @NonNull public static String getKeyFromField(@NonNull Field field) { return field.getDeclaringClass().getName() + '#' + field.getName(); } @SuppressLint("NewApi") private  Lyra(@NonNull Application application,
                 @NonNull CoderRetriever coderRetriever,
                 @NonNull FieldsRetriever fieldsRetriever,
                 boolean autoSaveActivities); }
Lyra { @NonNull public static String getKeyFromField(@NonNull Field field) { return field.getDeclaringClass().getName() + '#' + field.getName(); } @SuppressLint("NewApi") private  Lyra(@NonNull Application application,
                 @NonNull CoderRetriever coderRetriever,
                 @NonNull FieldsRetriever fieldsRetriever,
                 boolean autoSaveActivities); static Builder with(@NonNull Application application); @SuppressLint("NewApi") static void destroy(); static boolean isInitialized(); @NonNull static Lyra instance(); @NonNull static String getKeyFromField(@NonNull Field field); void saveState(@NonNull Object stateHolder, @NonNull Bundle state); void restoreState(@NonNull Object stateHolder, @Nullable Bundle state); Parcelable saveState(@NonNull View stateHolder, @Nullable Parcelable state); Parcelable restoreState(@NonNull View stateHolder, @Nullable Parcelable state); }
Lyra { @NonNull public static String getKeyFromField(@NonNull Field field) { return field.getDeclaringClass().getName() + '#' + field.getName(); } @SuppressLint("NewApi") private  Lyra(@NonNull Application application,
                 @NonNull CoderRetriever coderRetriever,
                 @NonNull FieldsRetriever fieldsRetriever,
                 boolean autoSaveActivities); static Builder with(@NonNull Application application); @SuppressLint("NewApi") static void destroy(); static boolean isInitialized(); @NonNull static Lyra instance(); @NonNull static String getKeyFromField(@NonNull Field field); void saveState(@NonNull Object stateHolder, @NonNull Bundle state); void restoreState(@NonNull Object stateHolder, @Nullable Bundle state); Parcelable saveState(@NonNull View stateHolder, @Nullable Parcelable state); Parcelable restoreState(@NonNull View stateHolder, @Nullable Parcelable state); static final String SUB_BUNDLE_KEY; static final String VIEW_SUPER_STATE_BUNDLE_KEY; }