congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StringUtility.splitStringCommaSpace
Code IndexAdd Tabnine to your IDE (free)

How to use
splitStringCommaSpace
method
in
com.aoindustries.util.StringUtility

Best Java code snippets using com.aoindustries.util.StringUtility.splitStringCommaSpace (Showing top 7 results out of 315)

origin: com.aoindustries/aoserv-client

public List<String> getTechnicalEmail() {
  return StringUtility.splitStringCommaSpace(technicalEmail);
}
origin: com.aoindustries/aoserv-client

public List<String> getBillingEmail() {
  return StringUtility.splitStringCommaSpace(billingEmail);
}
origin: com.aoindustries/aoserv-client

/**
 * Gets the list of protocols in preferred order.
 */
static List<String> getProtocols() throws IOException {
  return StringUtility.splitStringCommaSpace(getProperty("aoserv.client.protocols"));
}
origin: com.aoindustries/ao-appcluster-core

/**
 * Gets a unique set of trimmed strings.  Must have at least one value when required.
 */
public Set<String> getUniqueStrings(String propertyName, boolean required) throws AppClusterConfigurationException {
  String paramValue = getString(propertyName, required);
  if(paramValue==null) return Collections.emptySet();
  List<String> values = StringUtility.splitStringCommaSpace(paramValue);
  Set<String> set = new LinkedHashSet<String>(values.size()*4/3+1);
  for(String value : values) {
    value = value.trim();
    if(value.length()>0 && !set.add(value)) {
      throw new AppClusterConfigurationException(
        ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getStrings.duplicate", propertyName, value)
      );
    }
  }
  if(required && set.isEmpty()) throw new AppClusterConfigurationException(ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getString.missingValue", propertyName));
  return AoCollections.optimalUnmodifiableSet(set);
}
origin: com.aoindustries/aocode-public

for(String dayStr : StringUtility.splitStringCommaSpace(recurring.substring(3))) {
  boolean found = false;
  for(DayOfWeek dow : allDaysOfWeek) {
for(String monthStr : StringUtility.splitStringCommaSpace(recurring.substring(3))) {
  boolean found = false;
  for(Month month : allMonths) {
origin: com.aoindustries/ao-appcluster-core

/**
 * Gets a unique set of trimmed names.  Must have at least one value.
 */
public Set<? extends Name> getUniqueNames(String propertyName) throws AppClusterConfigurationException {
  try {
    List<String> values = StringUtility.splitStringCommaSpace(getString(propertyName, true));
    Set<Name> set = new LinkedHashSet<Name>(values.size()*4/3+1);
    for(String value : values) {
      value = value.trim();
      if(value.length()>0 && !set.add(Name.fromString(value))) {
        throw new AppClusterConfigurationException(
          ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getStrings.duplicate", propertyName, value)
        );
      }
    }
    if(set.isEmpty()) throw new AppClusterConfigurationException(ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getString.missingValue", propertyName));
    return AoCollections.optimalUnmodifiableSet(set);
  } catch(TextParseException exc) {
    throw new AppClusterConfigurationException(exc);
  }
}
origin: com.aoindustries/aocode-public

  return matchNone;
} else {
  List<String> list = StringUtility.splitStringCommaSpace(patterns);
com.aoindustries.utilStringUtilitysplitStringCommaSpace

Javadoc

Splits a string into multiple words on either whitespace or commas

Popular methods of StringUtility

  • join
    Joins the string representation of objects on the provided delimiter. The iteration will be performe
  • nullIfEmpty
    Returns null if the string is null or empty.
  • splitString
    Splits a String into a String[].
  • getApproximateSize
    Gets the approximate size (where k=1024) of a file in this format: x byte(s) xx bytes xxx bytes x.x
  • convertToHex
  • getDecimalTimeLengthString
  • replace
    Replaces all occurrences of a String with a String.
  • splitLines
    Splits a String into lines on any '\n' characters. Also removes any ending '\r' characters if presen
  • compareToDDMMYYYY0
  • compareToIgnoreCaseCarefulEquals
    Compares two strings in a case insensitive manner. However, if they are considered equals in the cas
  • convertStringDateToTime
  • countOccurrences
    Counts how many times a word appears in a line. Case insensitive matching.
  • convertStringDateToTime,
  • countOccurrences,
  • getDateString,
  • getHex,
  • getHexChar,
  • getTimeLengthString,
  • indexOf,
  • leapYear,
  • wordWrap

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Table (org.hibernate.mapping)
    A relational table
  • 21 Best IntelliJ Plugins
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