test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/ImmutableRecordNumbersTest.java
test_class.identifier: ImmutableRecordNumbersTest
test_case.body: @Test
      public void changingInitializationMapShouldBeSafe() {
          Map<Integer, Integer> entries = new HashMap<>();
  
          entries.put(1, 2);
          entries.put(3, 4);
          entries.put(5, 6);
  
          ImmutableRecordNumbers table = new ImmutableRecordNumbers(offsets(entries), types(entries));
  
          entries.put(1, 3);
          entries.put(7, 8);
          entries.remove(3);
  
          assertEquals(2, table.getOffset(1));
          assertEquals(4, table.getOffset(3));
          assertEquals(6, table.getOffset(5));
          assertEquals(-1, table.getOffset(2));
          assertEquals(-1, table.getOffset(42));
      }
test_case.class_method_signature: ImmutableRecordNumbersTest.changingInitializationMapShouldBeSafe()
test_case.full_signature: @Test public void changingInitializationMapShouldBeSafe()
test_case.identifier: changingInitializationMapShouldBeSafe
test_case.invocations: put put put offsets types put put remove assertEquals getOffset assertEquals getOffset assertEquals getOffset assertEquals getOffset assertEquals getOffset
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void changingInitializationMapShouldBeSafe()
focal_class.declarator: offsets
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final int[] offsets;
focal_class.type: int[]
focal_class.var_name: offsets
focal_class.declarator: type
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final byte[] type;
focal_class.type: byte[]
focal_class.var_name: type
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/ImmutableRecordNumbers.java
focal_class.identifier: ImmutableRecordNumbers
focal_class.interfaces: implements RecordNumbers
focal_class.class_method_signature: ImmutableRecordNumbers.ImmutableRecordNumbers(@NotNull int[] offsets, @NotNull byte[] type)
focal_class.full_signature: public  ImmutableRecordNumbers(@NotNull int[] offsets, @NotNull byte[] type)
focal_class.identifier: ImmutableRecordNumbers
focal_class.modifiers: public
focal_class.parameters: (@NotNull int[] offsets, @NotNull byte[] type)
focal_class.signature:  ImmutableRecordNumbers(@NotNull int[] offsets, @NotNull byte[] type)
focal_class.class_method_signature: ImmutableRecordNumbers.getOffset(int recordNumber)
focal_class.full_signature: @Override public int getOffset(int recordNumber)
focal_class.identifier: getOffset
focal_class.modifiers: @Override public
focal_class.parameters: (int recordNumber)
focal_class.return: int
focal_class.signature: int getOffset(int recordNumber)
focal_class.class_method_signature: ImmutableRecordNumbers.iterator()
focal_class.full_signature: @NotNull @Override public Iterator<Entry> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: ()
focal_class.return: Iterator<Entry>
focal_class.signature: Iterator<Entry> iterator()
focal_method.body: @Override
      public int getOffset(int recordNumber) {
          if (recordNumber < offsets.length) {
              return offsets[recordNumber];
          } else {
              return -1;
          }
      }
focal_method.class_method_signature: ImmutableRecordNumbers.getOffset(int recordNumber)
focal_method.full_signature: @Override public int getOffset(int recordNumber)
focal_method.identifier: getOffset
focal_method.modifiers: @Override public
focal_method.parameters: (int recordNumber)
focal_method.return: int
focal_method.signature: int getOffset(int recordNumber)