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

java.lang.Object
  extended by org.solovyev.android.fragments.AbstractFragmentReuseCondition<F>
      extended by org.solovyev.android.fragments.SimpleFragmentReuseCondition<F>
All Implemented Interfaces:
org.solovyev.common.JPredicate<Fragment>

public class SimpleFragmentReuseCondition<F extends Fragment>
extends AbstractFragmentReuseCondition<F>


Method Summary
protected  boolean canReuseFragment(F fragment)
           
static
<F extends Fragment>
org.solovyev.common.JPredicate<Fragment>
forClass(Class<F> fragmentClass)
           
 
Methods inherited from class org.solovyev.android.fragments.AbstractFragmentReuseCondition
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forClass

@Nonnull
public static <F extends Fragment> org.solovyev.common.JPredicate<Fragment> forClass(@Nonnull
                                                                                             Class<F> fragmentClass)

canReuseFragment

protected boolean canReuseFragment(@Nonnull
                                   F fragment)
Specified by:
canReuseFragment in class AbstractFragmentReuseCondition<F extends 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.