All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.solovyev.android.fragments.SimpleFragmentReuseCondition Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.fragments;

import android.support.v4.app.Fragment;
import org.solovyev.common.JPredicate;

import javax.annotation.Nonnull;

public class SimpleFragmentReuseCondition extends AbstractFragmentReuseCondition {

	private SimpleFragmentReuseCondition(@Nonnull Class fragmentClass) {
		super(fragmentClass);
	}

	@Nonnull
	public static  JPredicate forClass(@Nonnull Class fragmentClass) {
		return new SimpleFragmentReuseCondition(fragmentClass);
	}

	@Override
	protected boolean canReuseFragment(@Nonnull F fragment) {
		return true;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy