src/main/java/de/dennisguse/opentracks/ui/intervals/IntervalsFragment.java
public static Fragment newInstance(@NonNull Track.Id trackId, boolean fromTopToBottom) {
        Objects.nonNull(trackId);
        Bundle bundle = new Bundle();
        bundle.putBoolean(FROM_TOP_TO_BOTTOM_KEY, fromTopToBottom);
        bundle.putParcelable(TRACK_ID_KEY, trackId);
        IntervalsFragment intervalsFragment = new IntervalsFragment();
        intervalsFragment.setArguments(bundle);
        return intervalsFragment;
    }
/**
     * Creates an instance of this class.
     *
     * @param fromTopToBottom If true then the intervals are shown from top to bottom (the first interval on top). Otherwise the intervals are shown from bottom to top.
     * @return IntervalsFragment instance.
     */
Creates an instance of this class.
@param fromTopToBottom If true then the intervals are shown from top to bottom (the first interval on top). Otherwise the intervals are shown from bottom to top.
Creates an instance of this class . @param fromTopToBottom If true then the intervals are shown from top to bottom ( the first interval on top ) . Otherwise the intervals are shown from bottom to top .
public static Fragment newInstance(@NonNull Track.Id trackId, boolean fromTopToBottom) {
        Objects.nonNull(trackId);
        Bundle bundle = new Bundle();
        bundle.putBoolean(FROM_TOP_TO_BOTTOM_KEY, fromTopToBottom);
        bundle.putParcelable(TRACK_ID_KEY, trackId);
        IntervalsFragment intervalsFragment = new IntervalsFragment();
        intervalsFragment.setArguments(bundle);
        return intervalsFragment;
    }
public static Fragment newInstance ( @ NonNull Track . Id trackId , boolean fromTopToBottom ) { Objects . nonNull ( trackId ) ; Bundle bundle = new Bundle ( ) ; bundle . putBoolean ( FROM_TOP_TO_BOTTOM_KEY , fromTopToBottom ) ; bundle . putParcelable ( TRACK_ID_KEY , trackId ) ; IntervalsFragment intervalsFragment = new IntervalsFragment ( ) ; intervalsFragment . setArguments ( bundle ) ; return intervalsFragment ; }
Creates an instance of this class.
Creates an instance of this class .