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

How to use
nullSafeIsEmpty
method
in
org.springframework.data.gemfire.util.CollectionUtils

Best Java code snippets using org.springframework.data.gemfire.util.CollectionUtils.nullSafeIsEmpty (Showing top 2 results out of 315)

origin: org.springframework.data/spring-data-geode

/**
 * Binds the given {@link Collection} of values into the {@literal IN} parameters of the OQL Query by expanding
 * the given values into a comma-separated {@link String}.
 *
 * @param values the values to bind, returns the {@link QueryString} as is if {@literal null} is given.
 * @return a Query String having "in" parameters bound with values.
 */
public QueryString bindIn(Collection<?> values) {
  if (!nullSafeIsEmpty(values)) {
    return QueryString.of(this.query.replaceFirst(IN_PATTERN, String.format("(%s)",
      StringUtils.collectionToDelimitedString(values, ", ", "'", "'"))));
  }
  return this;
}
origin: org.springframework.data/spring-data-gemfire

/**
 * Binds the given {@link Collection} of values into the {@literal IN} parameters of the OQL Query by expanding
 * the given values into a comma-separated {@link String}.
 *
 * @param values the values to bind, returns the {@link QueryString} as is if {@literal null} is given.
 * @return a Query String having "in" parameters bound with values.
 */
public QueryString bindIn(Collection<?> values) {
  if (!nullSafeIsEmpty(values)) {
    return QueryString.of(this.query.replaceFirst(IN_PATTERN, String.format("(%s)",
      StringUtils.collectionToDelimitedString(values, ", ", "'", "'"))));
  }
  return this;
}
org.springframework.data.gemfire.utilCollectionUtilsnullSafeIsEmpty

Javadoc

Determines whether the given Collection is Collection#isEmpty().

Popular methods of CollectionUtils

  • asSet
    Returns an unmodifiable Set containing the elements from the given object array.
  • nullSafeIterable
    Returns the given Iterable if not null or empty, otherwise returns the defaultIterable.
  • nullSafeMap
    Null-safe operation returning the given Map if not nullor an empty Map if null.
  • nullSafeSet
    Null-safe operation returning the given Set if not nullor an empty Set if null.
  • iterable
    Adapts the given Iterator as an Iterable object for use within a for each loop.
  • nullSafeList
    Null-safe operation returning the given List if not nullor an empty List if null.
  • addAll
    Adds all elements from the given Iterable to the Collection.
  • containsAny
    Null-safe method to determines whether the given Collection contains any elements from the given arr
  • emptyIterable
    Returns an empty Iterable object.
  • isEmpty
  • newSortedMap
  • nullSafeCollection
    Null-safe operation returning the given Collection if not nullor an empty Collection (implemented wi
  • newSortedMap,
  • nullSafeCollection,
  • nullSafeEnumeration,
  • nullSafeIterator,
  • nullSafeSize,
  • toIterator,
  • toString

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • startActivity (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top 17 PhpStorm 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