Tabnine Logo
String.isBlank
Code IndexAdd Tabnine to your IDE (free)

How to use
isBlank
method
in
java.lang.String

Best Java code snippets using java.lang.String.isBlank (Showing top 3 results out of 315)

origin: com.yahoo.vespa/config-provisioning

private static String requireNonBlank(String s, String message) {
  if (s == null || s.isBlank()) {
    throw new IllegalArgumentException(message);
  }
  return s;
}
origin: io.github.udaychandra/common

public MetadataItem(Class<?> serviceProvider, Metadata holder) {
  providerName = serviceProvider.getName();
  activateMethodName = holder.properties().getProperty(providerName + ACTIVATE_SUFFIX);
  var refs = holder.properties().getProperty(providerName + REFS_SUFFIX);
  if (refs != null && !refs.isBlank()) {
    var tokens = refs.split(COMMA);
    references = new ArrayList<>(tokens.length);
    for (String t : tokens) {
      references.add(new Reference(t, holder.module().getLayer()));
    }
  } else {
    references = List.of();
  }
}
origin: no.ssb.lds/linked-data-store-persistence-provider-foundationdb

@Override
public JsonPersistence initialize(String defaultNamespace, Map<String, String> configuration, Set<String> managedDomains) {
  FDB fdb = FDB.selectAPIVersion(520);
  Database db = fdb.open();
  String nodePrefixHex = configuration.get("foundationdb.directory.node-prefix.hex");
  if (nodePrefixHex == null || nodePrefixHex.isBlank()) {
    nodePrefixHex = "0x23"; // default
  }
  String contentPrefixHex = configuration.get("foundationdb.directory.content-prefix.hex");
  if (contentPrefixHex == null || contentPrefixHex.isBlank()) {
    contentPrefixHex = "0x24";  // default
  }
  int fragmentCapacityBytes = Integer.parseInt(ofNullable(configuration.get("persistence.fragment.capacity")).orElse("8192"));
  byte[] nodePrefix = hexToBytes(nodePrefixHex);
  byte[] contentPrefix = hexToBytes(contentPrefixHex);
  Directory directory = new DirectoryLayer(new Subspace(nodePrefix), new Subspace(contentPrefix));
  FoundationDBPersistence persistence = new FoundationDBPersistence(new FoundationDBTransactionFactory(db), new DefaultFoundationDBDirectory(db, directory));
  return new BufferedJsonPersistence(new DefaultFlattenedPersistence(persistence, fragmentCapacityBytes), fragmentCapacityBytes);
}
java.langStringisBlank

Popular methods of String

  • equals
  • length
    Returns the number of characters in this string.
  • substring
    Returns a string containing a subsequence of characters from this string. The returned string shares
  • startsWith
    Compares the specified string to this string, starting at the specified offset, to determine if the
  • format
    Returns a formatted string, using the supplied format and arguments, localized to the given locale.
  • split
    Splits this string using the supplied regularExpression. See Pattern#split(CharSequence,int) for an
  • trim
  • valueOf
    Creates a new string containing the specified characters in the character array. Modifying the chara
  • indexOf
  • endsWith
    Compares the specified string to this string to determine if the specified string is a suffix.
  • toLowerCase
    Converts this string to lower case, using the rules of locale.Most case mappings are unaffected by t
  • contains
    Determines if this String contains the sequence of characters in the CharSequence passed.
  • toLowerCase,
  • contains,
  • getBytes,
  • <init>,
  • equalsIgnoreCase,
  • replace,
  • isEmpty,
  • charAt,
  • hashCode,
  • lastIndexOf

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • Menu (java.awt)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for Android Studio
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