Tabnine Logo
MultiMap.keySet
Code IndexAdd Tabnine to your IDE (free)

How to use
keySet
method
in
org.apache.commons.collections4.MultiMap

Best Java code snippets using org.apache.commons.collections4.MultiMap.keySet (Showing top 6 results out of 315)

origin: devnied/EMV-NFC-Paycard-Enrollment

/**
 * Method used to find description from ATR
 * 
 * @param pAtr
 *            Card ATR
 * @return list of description
 */
@SuppressWarnings("unchecked")
public static final Collection<String> getDescription(final String pAtr) {
  Collection<String> ret = null;
  if (StringUtils.isNotBlank(pAtr)) {
    String val = StringUtils.deleteWhitespace(pAtr);
    for (String key : MAP.keySet()) {
      if (val.matches("^" + key + "$")) {
        ret = (Collection<String>) MAP.get(key);
        break;
      }
    }
  }
  return ret;
}
origin: devnied/EMV-NFC-Paycard-Enrollment

/**
 * Method used to find ATR description from ATS (Answer to select)
 * 
 * @param pAts
 *            EMV card ATS
 * @return card description
 */
@SuppressWarnings("unchecked")
public static final Collection<String> getDescriptionFromAts(final String pAts) {
  Collection<String> ret = null;
  if (StringUtils.isNotBlank(pAts)) {
    String val = StringUtils.deleteWhitespace(pAts);
    for (String key : MAP.keySet()) {
      if (key.contains(val)) { // TODO Fix this
        ret = (Collection<String>) MAP.get(key);
        break;
      }
    }
  }
  return ret;
}
origin: com.github.devnied.emvnfccard/library

/**
 * Method used to find description from ATR
 * 
 * @param pAtr
 *            Card ATR
 * @return list of description
 */
@SuppressWarnings("unchecked")
public static final Collection<String> getDescription(final String pAtr) {
  Collection<String> ret = null;
  if (StringUtils.isNotBlank(pAtr)) {
    String val = StringUtils.deleteWhitespace(pAtr);
    for (String key : MAP.keySet()) {
      if (val.matches("^" + key + "$")) {
        ret = (Collection<String>) MAP.get(key);
        break;
      }
    }
  }
  return ret;
}
origin: com.github.devnied.emvnfccard/library

/**
 * Method used to find ATR description from ATS (Answer to select)
 * 
 * @param pAts
 *            EMV card ATS
 * @return card description
 */
@SuppressWarnings("unchecked")
public static final Collection<String> getDescriptionFromAts(final String pAts) {
  Collection<String> ret = null;
  if (StringUtils.isNotBlank(pAts)) {
    String val = StringUtils.deleteWhitespace(pAts);
    for (String key : MAP.keySet()) {
      if (key.contains(val)) { // TODO Fix this
        ret = (Collection<String>) MAP.get(key);
        break;
      }
    }
  }
  return ret;
}
origin: info.magnolia.cache/magnolia-cache-core

public void replayHeadersAndStatus(HttpServletResponse target) throws IOException {
  if (isError) {
    if (errorMsg != null) {
      target.sendError(status, errorMsg);
    } else {
      target.sendError(status);
    }
  } else if (redirectionLocation != null) {
    target.sendRedirect(redirectionLocation);
  } else {
    target.setStatus(status);
  }
  target.setStatus(getStatus());
  final Iterator it = headers.keySet().iterator();
  while (it.hasNext()) {
    final String header = (String) it.next();
    final Collection values = (Collection) headers.get(header);
    final Iterator valIt = values.iterator();
    while (valIt.hasNext()) {
      final Object val = valIt.next();
      RequestHeaderUtil.setHeader(target, header, val);
    }
  }
  target.setContentType(getContentType());
  target.setCharacterEncoding(getCharacterEncoding());
  target.setContentLength(getContentLength());
}
origin: info.magnolia.cache/magnolia-cache-core

final MultiMap headers = getHeaders();
final Iterator it = headers.keySet().iterator();
while (it.hasNext()) {
  final String header = (String) it.next();
org.apache.commons.collections4MultiMapkeySet

Popular methods of MultiMap

  • get
    Gets the collection of values associated with the specified key. The returned value will implement C
  • put
    Adds the value to the collection associated with the specified key. Unlike a normal Map the previous
  • clear
  • containsKey
  • entrySet
  • remove
    Removes all values associated with the specified key. Implementations typically return null from a s

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Reference (javax.naming)
  • Top plugins for Android Studio
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