Tabnine Logo
SortedArrayStringMap.nullKeyIndex
Code IndexAdd Tabnine to your IDE (free)

How to use
nullKeyIndex
method
in
org.apache.logging.log4j.util.SortedArrayStringMap

Best Java code snippets using org.apache.logging.log4j.util.SortedArrayStringMap.nullKeyIndex (Showing top 2 results out of 315)

origin: org.apache.logging.log4j/log4j-api

@Override
public int indexOfKey(final String key) {
  if (keys == EMPTY) {
    return -1;
  }
  if (key == null) { // null key is located at the start of the array
    return nullKeyIndex(); // insert at index zero
  }
  final int start = size > 0 && keys[0] == null ? 1 : 0;
  return Arrays.binarySearch(keys, start, size, key);
}
origin: ops4j/org.ops4j.pax.logging

@Override
public int indexOfKey(final String key) {
  if (keys == EMPTY) {
    return -1;
  }
  if (key == null) { // null key is located at the start of the array
    return nullKeyIndex(); // insert at index zero
  }
  final int start = size > 0 && keys[0] == null ? 1 : 0;
  return Arrays.binarySearch(keys, start, size, key);
}
org.apache.logging.log4j.utilSortedArrayStringMapnullKeyIndex

Popular methods of SortedArrayStringMap

  • <init>
  • putValue
  • getKeyAt
  • getValueAt
  • indexOfKey
  • size
  • assertNoConcurrentModification
  • assertNotFrozen
  • ceilingNextPowerOfTwo
    Calculate the next power of 2, greater than or equal to x. From Hacker's Delight, Chapter 3, Harry S
  • ensureCapacity
  • handleSerializationException
  • hashCode
  • handleSerializationException,
  • hashCode,
  • inflateTable,
  • initFrom0,
  • insertAt,
  • marshall,
  • merge,
  • putAll,
  • resize

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ImageIO (javax.imageio)
  • Reference (javax.naming)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • 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