本文整理了Java中org.apache.http.util.Args.notEmpty()
方法的一些代码示例,展示了Args.notEmpty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Args.notEmpty()
方法的具体详情如下:
包路径:org.apache.http.util.Args
类名称:Args
方法名:notEmpty
暂无
代码示例来源:origin: OrienteerBAP/Orienteer
public OArchitectOClass(String name, List<String> superClasses, List<OArchitectOProperty> properties) {
Args.notEmpty(name, "name");
this.name = name;
this.superClasses = superClasses;
this.properties = properties;
}
代码示例来源:origin: OrienteerBAP/Orienteer
public OArchitectOProperty(String name, OType type, boolean subClassProperty, String linkedClass) {
Args.notEmpty(name, "name");
this.name = name;
this.type = type;
this.subClassProperty = subClassProperty;
this.linkedClass = linkedClass;
}
代码示例来源:origin: ibinti/bugvm
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: com.hynnet/httpclient
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: org.apache.httpcomponents/httpclient-android
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpclient
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: Nextdoor/bender
/**
* Updates the auth state with a queue of {@link AuthOption}s.
*
* @param authOptions a queue of auth options. May not be null or empty.
*
* @since 4.2
*/
public void update(final Queue<AuthOption> authOptions) {
Args.notEmpty(authOptions, "Queue of auth options");
this.authOptions = authOptions;
this.authScheme = null;
this.credentials = null;
}
代码示例来源:origin: org.apache.httpcomponents/httpclient-android
/**
* @since 4.3
*/
public String getParameter(final String name) {
Args.notEmpty(name, "Parameter name");
if (this.params == null) {
return null;
}
for (final NameValuePair param: this.params) {
if (param.getName().equalsIgnoreCase(name)) {
return param.getValue();
}
}
return null;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* @since 4.3
*/
public String getParameter(final String name) {
Args.notEmpty(name, "Parameter name");
if (this.params == null) {
return null;
}
for (final NameValuePair param: this.params) {
if (param.getName().equalsIgnoreCase(name)) {
return param.getValue();
}
}
return null;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpcore
/**
* @since 4.3
*/
public String getParameter(final String name) {
Args.notEmpty(name, "Parameter name");
if (this.params == null) {
return null;
}
for (final NameValuePair param: this.params) {
if (param.getName().equalsIgnoreCase(name)) {
return param.getValue();
}
}
return null;
}
代码示例来源:origin: ibinti/bugvm
public RegistryBuilder<I> register(final String id, final I item) {
Args.notEmpty(id, "ID");
Args.notNull(item, "Item");
items.put(id.toLowerCase(Locale.ROOT), item);
return this;
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
public RegistryBuilder<I> register(final String id, final I item) {
Args.notEmpty(id, "ID");
Args.notNull(item, "Item");
items.put(id.toLowerCase(Locale.ROOT), item);
return this;
}
代码示例来源:origin: org.apache.httpcomponents/httpclient-android
public RegistryBuilder<I> register(final String id, final I item) {
Args.notEmpty(id, "ID");
Args.notNull(item, "Item");
items.put(id.toLowerCase(Locale.US), item);
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
public RegistryBuilder<I> register(final String id, final I item) {
Args.notEmpty(id, "ID");
Args.notNull(item, "Item");
items.put(id.toLowerCase(Locale.ROOT), item);
return this;
}
代码示例来源:origin: Nextdoor/bender
public RegistryBuilder<I> register(final String id, final I item) {
Args.notEmpty(id, "ID");
Args.notNull(item, "Item");
items.put(id.toLowerCase(Locale.ROOT), item);
return this;
}
代码示例来源:origin: OrienteerBAP/Orienteer
public GeneratorMode(String name, Class<? extends IGeneratorStrategy> strategyClass) {
Args.notEmpty(name, "name");
Args.notNull(strategyClass, "strategyClass");
this.name = name;
this.strategyClass = strategyClass;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpcore
public RegistryBuilder<I> register(final String id, final I item) {
Args.notEmpty(id, "ID");
Args.notNull(item, "Item");
items.put(id.toLowerCase(Locale.ENGLISH), item);
return this;
}
代码示例来源:origin: OrienteerBAP/Orienteer
/**
* Download artifact from repository
* @param artifact {@link Artifact} for download
* @param repository repository for download artifact
* @return {@link Artifact} of downloaded artifact or Optional.absent if can't download artifact
* @throws IllegalArgumentException if artifact or repository is null.
*/
public Artifact downloadArtifact(Artifact artifact, String repository) {
Args.notNull(artifact, "artifact");
Args.notEmpty(repository, "repository");
ArtifactRequest artifactRequest = createArtifactRequest(artifact, newUserRemoteRepository(repository));
ArtifactResult result = resolveArtifactRequest(artifactRequest);
return result != null ? result.getArtifact() : null;
}
内容来源于网络,如有侵权,请联系作者删除!