Codota Logo
StringUtil.isEmptyOrSpaces
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JLabel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now