Tabnine Logo
StringUtil.isEmptyOrSpaces
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmptyOrSpaces
method
in
jetbrains.buildServer.util.StringUtil

Best Java code snippets using jetbrains.buildServer.util.StringUtil.isEmptyOrSpaces (Showing top 3 results out of 315)

origin: JetBrains/teamcity-s3-artifact-storage-plugin

@NotNull
public static Map<String, String> validateParameters(@NotNull Map<String, String> params, boolean acceptReferences) {
 final Map<String, String> invalids = new HashMap<String, String>();
 if (StringUtil.isEmptyOrSpaces(getBucketName(params))) {
  invalids.put(S3_BUCKET_NAME, "S3 bucket name must not be empty");
 }
 invalids.putAll(AWSCommonParams.validate(params, acceptReferences));
 return invalids;
}
origin: JetBrains/teamcity-s3-artifact-storage-plugin

public PathPatternFilter(@NotNull String patterns) {
 if (StringUtil.isEmptyOrSpaces(patterns)) {
  patterns = "+:" + DEFAULT_INCLUDE_RULE;
 }
 final IncludeExcludeRules rules = new IncludeExcludeRules(patterns);
 for (IncludeExcludeRules.Rule r : rules.getRules()) {
  if (r.isInclude()) {
   myIncludePatterns.add(r.getRule());
  } else {
   myExcludePatterns.add(r.getRule());
  }
 }
}
origin: andreizhuk/tc-ansible-runner

 public Collection<InvalidProperty> process(final Map<String, String> properties) {
   List<InvalidProperty> errors = new ArrayList<InvalidProperty>();
   AnsibleRunConfig config = new AnsibleRunConfig(properties);
   if (AnsibleCommand.EXECUTABLE.equals(config.getCommandType())) {
     if (StringUtil.isEmptyOrSpaces(config.getExecutable())) {
       errors.add(new InvalidProperty(AnsibleRunnerConstants.EXECUTABLE_KEY, "Cannot be empty"));
     }
     if (StringUtil.isEmptyOrSpaces(config.getPlaybook())) {
       errors.add(new InvalidProperty(AnsibleRunnerConstants.PLAYBOOK_FILE_KEY, "Cannot be empty"));
     }
   } else if (AnsibleCommand.CUSTOM_SCRIPT.equals(config.getCommandType())) {
     if (StringUtil.isEmptyOrSpaces(config.getSourceCode())) {
       errors.add(new InvalidProperty(AnsibleRunnerConstants.SOURCE_CODE_KEY, "Cannot be empty"));
     }
   }
  return errors;
 }
};
jetbrains.buildServer.utilStringUtilisEmptyOrSpaces

Popular methods of StringUtil

  • isEmpty
  • isNotEmpty
  • emptyIfNull
  • join
  • notEmpty
  • nullIfEmpty
  • pluralize

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JComboBox (javax.swing)
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now