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

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JTextField (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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