Codota Logo
CollectionHelper.isEmpty
Code IndexAdd Codota to your IDE (free)

How to use
isEmpty
method
in
org.n52.sos.util.CollectionHelper

Best Java code snippets using org.n52.sos.util.CollectionHelper.isEmpty (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.n52.sensorweb.sos/binding-soap

  protected String checkSoapAction(String soapAction, List<SoapHeader> soapHeaders) {
    if (soapAction != null && !soapAction.isEmpty()) {
      return soapAction;
    } else if (CollectionHelper.isEmpty(soapHeaders)) {
      for (SoapHeader soapHeader : soapHeaders) {
        if (WsaConstants.NS_WSA.equals(soapHeader.getNamespace()) && soapHeader instanceof WsaActionHeader) {
          return ((WsaActionHeader)soapHeader).getValue();
        }
      }
    }
    return null;
  }
}
origin: org.n52.sensorweb.sos/ereporting

public List<GeographicalName> getAdminUnits() {
  if (CollectionHelper.isEmpty(adminUnits)) {
    addAdminUnit(new GeographicalName());
  }
  return Collections.unmodifiableList(adminUnits);
}
origin: org.n52.sensorweb.sos/ereporting

public List<Spelling> getSpelling() {
  if (CollectionHelper.isEmpty(spelling)) {
    addSpelling(new Spelling());
  }
  return Collections.unmodifiableList(spelling);
}
origin: org.n52.sensorweb.sos/coding-ows-v110

private void setParameterValue(DomainType domainType, String name, Collection<OwsParameterValue> values)
    throws OwsExceptionReport {
  domainType.setName(name);
  if (CollectionHelper.isEmpty(values)) {
    domainType.addNewNoValues();
  } else {
    for (OwsParameterValue value : values) {
      if (value instanceof OwsParameterValuePossibleValues) {
        setParamList(domainType, (OwsParameterValuePossibleValues) value);
      } else if (value instanceof OwsParameterValueRange) {
        setParamRange(domainType, (OwsParameterValueRange) value);
      } else if (value instanceof OwsParameterDataType) {
        setParamDataType(domainType, (OwsParameterDataType) value);
      }
    }
  }
}
origin: org.n52.sensorweb.sos/hibernate-dao

@Override
public void updateCacheOfferings(WritableContentCache cache, Collection<String> offeringsNeedingUpdate)
    throws OwsExceptionReport {
  checkCacheNotNull(cache);
  if (CollectionHelper.isEmpty(offeringsNeedingUpdate)) {
    return;
  }
  List<OwsExceptionReport> errors = CollectionHelper.synchronizedList();
  Session session = getSession();
  OfferingCacheUpdate update = new OfferingCacheUpdate(getCacheThreadCount(), offeringsNeedingUpdate);
  update.setCache(cache);
  update.setErrors(errors);
  update.setSession(session);
  
  LOGGER.info("Starting offering cache update for {} offering(s)", offeringsNeedingUpdate.size());
  long cacheUpdateStartTime = System.currentTimeMillis();
  try {
    update.execute();
  } catch (Exception e) {
    LOGGER.error("Error while updating ContentCache!", e);
    errors.add(new NoApplicableCodeException().causedBy(e).withMessage("Error while updating ContentCache!"));
  } finally {
    returnSession(session);
  }
  logCacheLoadTime(cacheUpdateStartTime);
  if (!errors.isEmpty()) {
    throw new CompositeOwsException(errors);
  }
}
origin: org.n52.sensorweb.sos/hibernate-dao

addParentChildRestriction(c);
if (isEmpty(featureIdentifiers)) {
  return null; // because no features where found regarding the
origin: org.n52.sensorweb.sos/hibernate-dao

if (CollectionHelper.isEmpty(series)) {
  return null;
} else {
origin: org.n52.sensorweb.sos/binding-kvp

List<SpatialFilter> spatialFilters = new ArrayList<SpatialFilter>(1);
List<String> splittedParameterValues = Arrays.asList(parameterValues.split(","));
if (CollectionHelper.isEmpty(splittedParameterValues)) {
  throw new MissingParameterValueException(parameterName);
origin: org.n52.sensorweb.sos/binding-kvp

if (CollectionHelper.isEmpty(splittedParameterValues)) {
  throw new MissingParameterValueException(parameterName);
origin: org.n52.sensorweb.sos/gc-dao

final Map<String, List<OfferingExtension>> extensions = getSettingsManager().getActiveOfferingExtensions();
if (CollectionHelper.isEmpty(offerings)) {
origin: org.n52.sensorweb.sos/hibernate-dao

session = sessionHolder.getSession();
if (HibernateStreamingConfiguration.getInstance().isForceDatasourceStreaming()
    && CollectionHelper.isEmpty(sosRequest.getFirstLatestTemporalFilter())) {
origin: org.n52.sensorweb.sos/coding-sos-v100

if (CollectionHelper.isEmpty(resultModels)) {
  throw new NoApplicableCodeException()
      .withMessage(
org.n52.sos.utilCollectionHelperisEmpty

Popular methods of CollectionHelper

  • isNotEmpty
  • isNotNullOrEmpty
  • isNullOrEmpty
  • union
  • conjunctCollections
  • map
  • synchronizedList
  • synchronizedMap

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
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