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 distance() {
          HashMap<Integer, Integer> bijection = new HashMap<>();
          bijection.put(1, 14);
          bijection.put(2, 14);
          bijection.put(3, 14);
          bijection.put(4, 14);
          bijection.put(5, 14);
          bijection.put(6, 14);
          bijection.put(7, 14);
          bijection.put(8, 14);
          bijection.put(9, 14);
  
          IntHashMap<String> directPositionMap = (IntHashMap<String>)bijectionHashFunctionMap(bijection);
  
          directPositionMap.put(1, value(1));
          directPositionMap.put(2, value(2));
          directPositionMap.put(3, value(3));
          directPositionMap.put(4, value(4));
          directPositionMap.put(5, value(5));
          directPositionMap.put(6, value(6));
          directPositionMap.put(7, value(7));
          directPositionMap.put(8, value(8));
          directPositionMap.put(9, value(9));
  
          assertEquals(0, directPositionMap.distance(14, 1));
          assertEquals(1, directPositionMap.distance(15, 1));
          assertEquals(2, directPositionMap.distance(0, 1));
          assertEquals(3, directPositionMap.distance(1, 1));
          assertEquals(4, directPositionMap.distance(2, 1));
          assertEquals(5, directPositionMap.distance(3, 1));
          assertEquals(15, directPositionMap.distance(13, 1));
      }
test_case.class_method_signature: IntHashMapTest.distance()
test_case.full_signature: @Test public void distance()
test_case.identifier: distance
test_case.invocations: put put put put put put put put put bijectionHashFunctionMap put value put value put value put value put value put value put value put value put value assertEquals distance assertEquals distance assertEquals distance assertEquals distance assertEquals distance assertEquals distance assertEquals distance
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void distance()
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: protected int distance(int curIdx, int key) {
          int keyIdx = index(key);
  
          return curIdx >= keyIdx ? curIdx - keyIdx : entries.length - keyIdx + curIdx;
      }
focal_method.class_method_signature: IntHashMap.distance(int curIdx, int key)
focal_method.full_signature: protected int distance(int curIdx, int key)
focal_method.identifier: distance
focal_method.invocations: index
focal_method.modifiers: protected
focal_method.parameters: (int curIdx, int key)
focal_method.return: int
focal_method.signature: int distance(int curIdx, int key)