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

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

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

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

final int index = indexOfKey(keys[i]);
if (index < 0) { // key does not exist
  insertAt(~index, keys[i], values[i]);
} else if (overwrite) { // existing key: only overwrite when looping over the new values
  keys[index] = keys[i];
origin: org.apache.logging.log4j/log4j-api

@Override
public void putValue(final String key, final Object value) {
  assertNotFrozen();
  assertNoConcurrentModification();
  if (keys == EMPTY) {
    inflateTable(threshold);
  }
  final int index = indexOfKey(key);
  if (index >= 0) {
    keys[index] = key;
    values[index] = value;
  } else { // not found, so insert.
    insertAt(~index, key, value);
  }
}
origin: ops4j/org.ops4j.pax.logging

final int index = indexOfKey(keys[i]);
if (index < 0) { // key does not exist
  insertAt(~index, keys[i], values[i]);
} else if (overwrite) { // existing key: only overwrite when looping over the new values
  keys[index] = keys[i];
origin: ops4j/org.ops4j.pax.logging

@Override
public void putValue(final String key, final Object value) {
  assertNotFrozen();
  assertNoConcurrentModification();
  if (keys == EMPTY) {
    inflateTable(threshold);
  }
  final int index = indexOfKey(key);
  if (index >= 0) {
    keys[index] = key;
    values[index] = value;
  } else { // not found, so insert.
    insertAt(~index, key, value);
  }
}
org.apache.logging.log4j.utilSortedArrayStringMapinsertAt

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,
  • marshall,
  • merge,
  • nullKeyIndex,
  • putAll,
  • resize

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JTable (javax.swing)
  • 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