test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/MutableRecordNumbersTest.java
test_class.identifier: MutableRecordNumbersTest
test_case.body: @Test
      public void nonExistingRecordNumberShouldReturnSentinel() {
          assertEquals(-1, new MutableRecordNumbers().getOffset(42));
      }
test_case.class_method_signature: MutableRecordNumbersTest.nonExistingRecordNumberShouldReturnSentinel()
test_case.full_signature: @Test public void nonExistingRecordNumberShouldReturnSentinel()
test_case.identifier: nonExistingRecordNumberShouldReturnSentinel
test_case.invocations: assertEquals getOffset
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void nonExistingRecordNumberShouldReturnSentinel()
focal_class.declarator: recordEntries
focal_class.modifier: private
focal_class.original_string: private int[] recordEntries;
focal_class.type: int[]
focal_class.var_name: recordEntries
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: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/MutableRecordNumbers.java
focal_class.identifier: MutableRecordNumbers
focal_class.interfaces: implements RecordNumbers
focal_class.class_method_signature: MutableRecordNumbers.MutableRecordNumbers()
focal_class.full_signature: public  MutableRecordNumbers()
focal_class.identifier: MutableRecordNumbers
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MutableRecordNumbers()
focal_class.class_method_signature: MutableRecordNumbers.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: MutableRecordNumbers.getRecordEntry(int[] entries, int index)
focal_class.full_signature: private static int getRecordEntry(int[] entries, int index)
focal_class.identifier: getRecordEntry
focal_class.modifiers: private static
focal_class.parameters: (int[] entries, int index)
focal_class.return: int
focal_class.signature: int getRecordEntry(int[] entries, int index)
focal_class.class_method_signature: MutableRecordNumbers.iterator()
focal_class.full_signature: @NotNull @Override public synchronized Iterator<Entry> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @NotNull @Override public synchronized
focal_class.parameters: ()
focal_class.return: Iterator<Entry>
focal_class.signature: Iterator<Entry> iterator()
focal_class.class_method_signature: MutableRecordNumbers.size()
focal_class.full_signature: public synchronized int size()
focal_class.identifier: size
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: MutableRecordNumbers.addRecord(RecordType type, int offset)
focal_class.full_signature: synchronized int addRecord(RecordType type, int offset)
focal_class.identifier: addRecord
focal_class.modifiers: synchronized
focal_class.parameters: (RecordType type, int offset)
focal_class.return: int
focal_class.signature: int addRecord(RecordType type, int offset)
focal_method.body: @Override
      public int getOffset(int recordNumber) {
          int recordEntry = getRecordEntry(recordEntries, recordNumber);
  
          if (recordEntry == -1) {
              synchronized (this) {
                  recordEntry = getRecordEntry(recordEntries, recordNumber);
              }
          }
          return recordEntry;
      }
focal_method.class_method_signature: MutableRecordNumbers.getOffset(int recordNumber)
focal_method.full_signature: @Override public int getOffset(int recordNumber)
focal_method.identifier: getOffset
focal_method.invocations: getRecordEntry getRecordEntry
focal_method.modifiers: @Override public
focal_method.parameters: (int recordNumber)
focal_method.return: int
focal_method.signature: int getOffset(int recordNumber)