Tabnine Logo
EqualsUtil.equalsAny
Code IndexAdd Tabnine to your IDE (free)

How to use
equalsAny
method
in
com.norconex.commons.lang.EqualsUtil

Best Java code snippets using com.norconex.commons.lang.EqualsUtil.equalsAny (Showing top 2 results out of 315)

origin: com.norconex.collectors/norconex-collector-core

private boolean isActionValid (CommandLine cmd) {
  String action = cmd.getOptionValue(ARG_ACTION);
  if (ARG_ACTION_CHECKCONFIG.equals(action)) {
    System.err.println("-action checkcfg is deprecated, "
        + "use -k or --checkcfg instead.");
    return false;
  }
  return EqualsUtil.equalsAny(action,
      ARG_ACTION_START, ARG_ACTION_RESUME, ARG_ACTION_STOP);
}

origin: com.norconex.collectors/norconex-importer

@Override
public void tagApplicableDocument(
    String reference, InputStream document,
    ImporterMetadata metadata, boolean parsed)
        throws ImporterHandlerException {
  for (String fieldName : fieldCases.keySet()) {
    CaseChangeDetails d = fieldCases.get(fieldName);
    boolean validApplyTo = false;
    
    String newField = fieldName;
    
    // Do field
    if (EqualsUtil.equalsAny(d.applyTo, APPLY_FIELD, APPLY_BOTH)) {
      newField = changeFieldCase(fieldName, d, metadata);
      validApplyTo = true;
    }
      
    // Do values
    if (StringUtils.isBlank(d.applyTo) || EqualsUtil.equalsAny(
        d.applyTo, APPLY_VALUE, APPLY_BOTH)) {
      changeValuesCase(newField, d, metadata);
      validApplyTo = true;
    }
    
    if (!validApplyTo) {
      LOG.warn("Unsupported \"applyTo\": " + d.applyTo);
    }
  }
}
 
com.norconex.commons.langEqualsUtilequalsAny

Popular methods of EqualsUtil

  • equalsMap

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top PhpStorm plugins
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