test_class.file: modules/core/src/test/java/org/apache/ignite/internal/util/collection/IntHashMapTest.java
test_class.identifier: IntHashMapTest
test_class.superclass: extends AbstractBaseIntMapTest
test_case.body: @Test
      public void shouldReturnsRequiredTableSizeForCustomCapacity() {
          assertEquals(INITIAL_CAPACITY, IntHashMap.tableSize(1));
          assertEquals(MAXIMUM_CAPACITY, IntHashMap.tableSize(Integer.MAX_VALUE));
      }
test_case.class_method_signature: IntHashMapTest.shouldReturnsRequiredTableSizeForCustomCapacity()
test_case.full_signature: @Test public void shouldReturnsRequiredTableSizeForCustomCapacity()
test_case.identifier: shouldReturnsRequiredTableSizeForCustomCapacity
test_case.invocations: assertEquals tableSize assertEquals tableSize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReturnsRequiredTableSizeForCustomCapacity()
focal_class.declarator: INITIAL_CAPACITY = 8
focal_class.modifier: public static final
focal_class.original_string: public static final int INITIAL_CAPACITY = 8;
focal_class.type: int
focal_class.var_name: INITIAL_CAPACITY
focal_class.declarator: MAXIMUM_CAPACITY = 1 << 30
focal_class.modifier: public static final
focal_class.original_string: public static final int MAXIMUM_CAPACITY = 1 << 30;
focal_class.type: int
focal_class.var_name: MAXIMUM_CAPACITY
focal_class.declarator: MAGIC_HASH_MIXER = 0x9E3779B9
focal_class.modifier: private static final
focal_class.original_string: private static final int MAGIC_HASH_MIXER = 0x9E3779B9;
focal_class.type: int
focal_class.var_name: MAGIC_HASH_MIXER
focal_class.declarator: SCALE_LOAD_FACTOR = 0.7F
focal_class.modifier: private static final
focal_class.original_string: private static final float SCALE_LOAD_FACTOR = 0.7F;
focal_class.type: float
focal_class.var_name: SCALE_LOAD_FACTOR
focal_class.declarator: COMPACT_LOAD_FACTOR = 0.2F
focal_class.modifier: private static final
focal_class.original_string: private static final float COMPACT_LOAD_FACTOR = 0.2F;
focal_class.type: float
focal_class.var_name: COMPACT_LOAD_FACTOR
focal_class.declarator: scaleThreshold
focal_class.modifier: private
focal_class.original_string: private int scaleThreshold;
focal_class.type: int
focal_class.var_name: scaleThreshold
focal_class.declarator: compactThreshold
focal_class.modifier: private
focal_class.original_string: private int compactThreshold;
focal_class.type: int
focal_class.var_name: compactThreshold
focal_class.declarator: entries
focal_class.modifier: private
focal_class.original_string: private Entry<V>[] entries;
focal_class.type: Entry<V>[]
focal_class.var_name: entries
focal_class.declarator: size
focal_class.modifier: private
focal_class.original_string: private int size;
focal_class.type: int
focal_class.var_name: size
focal_class.file: modules/core/src/main/java/org/apache/ignite/internal/util/collection/IntHashMap.java
focal_class.identifier: IntHashMap
focal_class.interfaces: implements IntMap<V>
focal_class.class_method_signature: IntHashMap.tableSize(int cap)
focal_class.full_signature: static int tableSize(int cap)
focal_class.identifier: tableSize
focal_class.modifiers: static
focal_class.parameters: (int cap)
focal_class.return: int
focal_class.signature: int tableSize(int cap)
focal_class.class_method_signature: IntHashMap.IntHashMap()
focal_class.full_signature: public  IntHashMap()
focal_class.identifier: IntHashMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  IntHashMap()
focal_class.class_method_signature: IntHashMap.IntHashMap(int cap)
focal_class.full_signature: public  IntHashMap(int cap)
focal_class.identifier: IntHashMap
focal_class.modifiers: public
focal_class.parameters: (int cap)
focal_class.signature:  IntHashMap(int cap)
focal_class.class_method_signature: IntHashMap.get(int key)
focal_class.full_signature: @Override public V get(int key)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (int key)
focal_class.return: V
focal_class.signature: V get(int key)
focal_class.class_method_signature: IntHashMap.put(int key, V val)
focal_class.full_signature: @Override public V put(int key, V val)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (int key, V val)
focal_class.return: V
focal_class.signature: V put(int key, V val)
focal_class.class_method_signature: IntHashMap.remove(int key)
focal_class.full_signature: @Override public V remove(int key)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (int key)
focal_class.return: V
focal_class.signature: V remove(int key)
focal_class.class_method_signature: IntHashMap.putIfAbsent(int key, V val)
focal_class.full_signature: @Override public V putIfAbsent(int key, V val)
focal_class.identifier: putIfAbsent
focal_class.modifiers: @Override public
focal_class.parameters: (int key, V val)
focal_class.return: V
focal_class.signature: V putIfAbsent(int key, V val)
focal_class.class_method_signature: IntHashMap.forEach(EntryConsumer<V, E> act)
focal_class.full_signature: @Override public void forEach(EntryConsumer<V, E> act)
focal_class.identifier: forEach
focal_class.modifiers: @Override public
focal_class.parameters: (EntryConsumer<V, E> act)
focal_class.return: void
focal_class.signature: void forEach(EntryConsumer<V, E> act)
focal_class.class_method_signature: IntHashMap.size()
focal_class.full_signature: @Override public int size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: IntHashMap.isEmpty()
focal_class.full_signature: @Override public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: IntHashMap.containsKey(int key)
focal_class.full_signature: @Override public boolean containsKey(int key)
focal_class.identifier: containsKey
focal_class.modifiers: @Override public
focal_class.parameters: (int key)
focal_class.return: boolean
focal_class.signature: boolean containsKey(int key)
focal_class.class_method_signature: IntHashMap.containsValue(V val)
focal_class.full_signature: @Override public boolean containsValue(V val)
focal_class.identifier: containsValue
focal_class.modifiers: @Override public
focal_class.parameters: (V val)
focal_class.return: boolean
focal_class.signature: boolean containsValue(V val)
focal_class.class_method_signature: IntHashMap.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: IntHashMap.distance(int curIdx, int key)
focal_class.full_signature: protected int distance(int curIdx, int key)
focal_class.identifier: distance
focal_class.modifiers: protected
focal_class.parameters: (int curIdx, int key)
focal_class.return: int
focal_class.signature: int distance(int curIdx, int key)
focal_class.class_method_signature: IntHashMap.index(int key)
focal_class.full_signature: protected int index(int key)
focal_class.identifier: index
focal_class.modifiers: protected
focal_class.parameters: (int key)
focal_class.return: int
focal_class.signature: int index(int key)
focal_class.class_method_signature: IntHashMap.put0(Entry<V> entry)
focal_class.full_signature: private V put0(Entry<V> entry)
focal_class.identifier: put0
focal_class.modifiers: private
focal_class.parameters: (Entry<V> entry)
focal_class.return: V
focal_class.signature: V put0(Entry<V> entry)
focal_class.class_method_signature: IntHashMap.find(int key)
focal_class.full_signature: private int find(int key)
focal_class.identifier: find
focal_class.modifiers: private
focal_class.parameters: (int key)
focal_class.return: int
focal_class.signature: int find(int key)
focal_class.class_method_signature: IntHashMap.resize(boolean increase)
focal_class.full_signature: private void resize(boolean increase)
focal_class.identifier: resize
focal_class.modifiers: private
focal_class.parameters: (boolean increase)
focal_class.return: void
focal_class.signature: void resize(boolean increase)
focal_method.body: static int tableSize(int cap) {
          int n = cap - 1;
          n |= n >>> 1;
          n |= n >>> 2;
          n |= n >>> 4;
          n |= n >>> 8;
          n |= n >>> 16;
  
          return (n < INITIAL_CAPACITY) ? INITIAL_CAPACITY : (n >= MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : n + 1;
      }
focal_method.class_method_signature: IntHashMap.tableSize(int cap)
focal_method.full_signature: static int tableSize(int cap)
focal_method.identifier: tableSize
focal_method.modifiers: static
focal_method.parameters: (int cap)
focal_method.return: int
focal_method.signature: int tableSize(int cap)