Tabnine Logo
CollectionHelper.isEmpty
Code IndexAdd Tabnine 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)

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
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • From CI to AI: The AI layer in your organization
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