Set the argument of Fragment.

@param fragment a fragment
@return a fragment
766835
public <T extends Fragment> T into(T fragment) {
    fragment.setArguments(get());
    return fragment;
  }
550354
public static URI setFragment(final URI path, final String fragment) {
        try {
            if (path.getPath() != null) {
                return new URI(path.getScheme(), path.getUserInfo(), path.getHost(), path.getPort(), path.getPath(), path.getQuery(), fragment);
            } else {
                return new URI(path.getScheme(), path.getSchemeSpecificPart(), fragment);
            }
        } catch (final URISyntaxException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
443148
private Fragment getSupportFragment(String tag, int id){
		FragmentActivity fragmentActivity = null;

		try{
			fragmentActivity = (FragmentActivity) activityUtils.getCurrentActivity(false);
		}catch (Throwable ignored) {}

		if(fragmentActivity != null){
			try{
				if(tag == null)
					return fragmentActivity.getSupportFragmentManager().findFragmentById(id);
				else
					return fragmentActivity.getSupportFragmentManager().findFragmentByTag(tag);
			}catch (NoSuchMethodError ignored) {}
		}
		return null;
	}
989460
static Function<String, Fragment> fragment(final Object tag) {
    return new Function<String, Fragment>() {
      @Override public Fragment apply(String text) {
        return Tokens.fragment(text, tag);
      }
      @Override public String toString() {
        return String.valueOf(tag);
      }
    };
  }
188685
public void replace(Fragment fragment) {
        manager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
        manager.beginTransaction()
            .replace(containerId, fragment, indexToTag(0))
            .commit();
        manager.executePendingTransactions();
    }
1332770
@InterfaceStability.Committed
    public N1qlParams consistentWith(DocumentFragment... fragments) {
        return consistentWith(MutationState.from(fragments));
    }
38470
public static String escapeFragment(final String fragment, final boolean strict) {
        return (strict ? STRICT_ESCAPER : ESCAPER).escapeFragment(fragment);
    }
278552
protected function setFragment($fragment)
    {
        if (!$this->isValidFragment($fragment)) {
            throw new \InvalidArgumentException("Invalid fragment '$fragment'");
        }
        
        $this->fragment = (string)$fragment;
    }
145363
private void notifyOnPreferenceFragmentHidden(@NonNull final Fragment fragment) {
        for (PreferenceFragmentListener listener : preferenceFragmentListeners) {
            listener.onPreferenceFragmentHidden(fragment);
        }
    }
507134
public static PlaceholderFragment newInstance(int sectionNumber, @LayoutRes int layoutRes) {
        PlaceholderFragment fragment = new PlaceholderFragment();
        Bundle args = new Bundle();
        args.putInt(ARG_SECTION_NUMBER, sectionNumber);
        args.putInt(ARG_LAYOUT_RESOURCE, layoutRes);
        fragment.setArguments(args);
        return fragment;
    }
1356688
public void add(String fragment, Object... params) {

        m_buffer.append(fragment);
        m_params.addAll(Arrays.asList(params));
    }
2756
public function fragment($fragment)
	{
		$this->fragment = ($fragment === NULL || $fragment == '') ? NULL : (string)$fragment;
		
		return $this;
	}
339160
public function setFragment($fragment = null)
    {
        if (is_string($fragment)) {
            if ($fragment{0} === '#') {
                $fragment = substr($fragment, 1);
            }
        }
        else if (!is_null($fragment)) {
            throw new \InvalidArgumentException(
                "invalid value provided for 'fragment'; ".
                "expecting a string or null"
            );
        }

        $this->fragment = $fragment;
        return $this;
    }
326077
public static DocLink fragment(String fragment) {
        return new DocLink((String) null, (String) null, fragment);
    }
303885
public void startFragment(Fragment fragment, String tag, boolean canAddToBackstack) {
		FragmentTransaction transaction = getSupportFragmentManager().beginTransaction().replace(R.id.fragmentContainer, fragment);
		if (canAddToBackstack) {
			transaction.addToBackStack(tag);
		}
		transaction.commit();

	}
128629
public CommandLineBuilder append(final String segment) {
        if (segment != null && !segment.isEmpty()) {
            return append(new String[]{segment});
        }
        return this;
    }
1346721
public static UriTemplate append(UriTemplate uriTemplate, String fragment) {
    return new UriTemplate(uriTemplate.toString() + fragment, uriTemplate.encodeSlash(),
        uriTemplate.getCharset());
  }