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

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

Best Java code snippets using com.norconex.commons.lang.EqualsUtil (Showing top 3 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 boolean equals(final Object other) {
  if (!(other instanceof ExternalTransformer)) {
    return false;
  }
  ExternalTransformer castOther = (ExternalTransformer) other;
  return new EqualsBuilder()
      .appendSuper(super.equals(castOther))
      .append(getCommand(), castOther.getCommand())
      .append(getTempDir(), castOther.getTempDir())
      .append(patterns, castOther.patterns)
      .append(metadataInputFormat, castOther.metadataInputFormat)
      .append(metadataOutputFormat, castOther.metadataOutputFormat)
      .isEquals()
      && EqualsUtil.equalsMap(getEnvironmentVariables(), 
          castOther.getEnvironmentVariables());
}
@Override
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.langEqualsUtil

Most used methods

  • equalsAny
  • equalsMap

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • Top plugins for WebStorm
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