org.solovyev.android.fragments
Class AbstractFragmentReuseCondition<F extends Fragment>
java.lang.Object
org.solovyev.android.fragments.AbstractFragmentReuseCondition<F>
- All Implemented Interfaces:
- org.solovyev.common.JPredicate<Fragment>
- Direct Known Subclasses:
- SimpleFragmentReuseCondition
public abstract class AbstractFragmentReuseCondition<F extends Fragment>
- extends Object
- implements org.solovyev.common.JPredicate<Fragment>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFragmentReuseCondition
public AbstractFragmentReuseCondition(@Nonnull
Class<F> fragmentClass)
apply
public final boolean apply(@Nullable
Fragment f)
- Specified by:
apply in interface org.solovyev.common.JPredicate<Fragment>
canReuseFragment
protected abstract boolean canReuseFragment(@Nonnull
F fragment)
- Parameters:
fragment - typed for fragment on which reuse check must be done
- Returns:
- true if fragment can be reused
Copyright © 2013. All Rights Reserved.