org.solovyev.android.fragments
Class AbstractFragmentReuseCondition<F extends Fragment>

java.lang.Object
  extended by 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>


Constructor Summary
AbstractFragmentReuseCondition(Class<F> fragmentClass)
           
 
Method Summary
 boolean apply(Fragment f)
           
protected abstract  boolean canReuseFragment(F fragment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFragmentReuseCondition

public AbstractFragmentReuseCondition(@Nonnull
                                      Class<F> fragmentClass)
Method Detail

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.