test_class.file: migration/third-party/org.mapdb/src/test/java/org/mapdb/UtilsTest.java
test_class.identifier: UtilsTest
test_case.body: @Test public void testArrayPut(){
          assertEquals(asList(1,2,3,4,5), asList(Utils.arrayPut(new Integer[]{1, 2, 4, 5}, 2, 3)));
          assertEquals(asList(1,2,3,4,5), asList(Utils.arrayPut(new Integer[]{2, 3, 4, 5}, 0, 1)));
          assertEquals(asList(1,2,3,4,5), asList(Utils.arrayPut(new Integer[]{1, 2, 3, 4}, 4, 5)));
      }
test_case.class_method_signature: UtilsTest.testArrayPut()
test_case.full_signature: @Test public void testArrayPut()
test_case.identifier: testArrayPut
test_case.invocations: assertEquals asList asList arrayPut assertEquals asList asList arrayPut assertEquals asList asList arrayPut
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testArrayPut()
focal_class.declarator: LOG = Logger.getLogger("JDBM")
focal_class.modifier: static final
focal_class.original_string: static final Logger LOG = Logger.getLogger("JDBM");
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: COMPARABLE_COMPARATOR = new Comparator<Comparable>() {
          @Override
          public int compare(Comparable o1, Comparable o2) {
              return o1.compareTo(o2);
          }
      }
focal_class.modifier: @SuppressWarnings("rawtypes")
  	public static final
focal_class.original_string: @SuppressWarnings("rawtypes")
  	public static final Comparator<Comparable> COMPARABLE_COMPARATOR = new Comparator<Comparable>() {
          @Override
          public int compare(Comparable o1, Comparable o2) {
              return o1.compareTo(o2);
          }
      };
focal_class.type: Comparator<Comparable>
focal_class.var_name: COMPARABLE_COMPARATOR
focal_class.declarator: COMPARABLE_COMPARATOR_WITH_NULLS = new Comparator<Comparable>() {
          @Override
          public int compare(Comparable o1, Comparable o2) {
              return o1 == null && o2 != null ? -1 : (o1 != null && o2 == null ? 1 : o1.compareTo(o2));
          }
      }
focal_class.modifier: @SuppressWarnings("rawtypes")
  	public static final
focal_class.original_string: @SuppressWarnings("rawtypes")
  	public static final Comparator<Comparable> COMPARABLE_COMPARATOR_WITH_NULLS = new Comparator<Comparable>() {
          @Override
          public int compare(Comparable o1, Comparable o2) {
              return o1 == null && o2 != null ? -1 : (o1 != null && o2 == null ? 1 : o1.compareTo(o2));
          }
      };
focal_class.type: Comparator<Comparable>
focal_class.var_name: COMPARABLE_COMPARATOR_WITH_NULLS
focal_class.declarator: EMPTY_STRING = ""
focal_class.modifier: public static final
focal_class.original_string: public static final String EMPTY_STRING = "";
focal_class.type: String
focal_class.var_name: EMPTY_STRING
focal_class.declarator: UTF8 = "UTF8"
focal_class.modifier: public static final
focal_class.original_string: public static final String UTF8 = "UTF8";
focal_class.type: String
focal_class.var_name: UTF8
focal_class.declarator: RANDOM = new Random()
focal_class.modifier: public static
focal_class.original_string: public static Random RANDOM = new Random();
focal_class.type: Random
focal_class.var_name: RANDOM
focal_class.declarator: collectionAsMapValueLogged = false
focal_class.modifier: private static
focal_class.original_string: private static boolean collectionAsMapValueLogged = false;
focal_class.type: boolean
focal_class.var_name: collectionAsMapValueLogged
focal_class.file: migration/third-party/org.mapdb/src/main/java/org/mapdb/Utils.java
focal_class.identifier: Utils
focal_class.class_method_signature: Utils.packLong(DataOutput out, long value)
focal_class.full_signature: static public void packLong(DataOutput out, long value)
focal_class.identifier: packLong
focal_class.modifiers: static public
focal_class.parameters: (DataOutput out, long value)
focal_class.return: void
focal_class.signature: void packLong(DataOutput out, long value)
focal_class.class_method_signature: Utils.unpackLong(DataInput in)
focal_class.full_signature: static public long unpackLong(DataInput in)
focal_class.identifier: unpackLong
focal_class.modifiers: static public
focal_class.parameters: (DataInput in)
focal_class.return: long
focal_class.signature: long unpackLong(DataInput in)
focal_class.class_method_signature: Utils.packInt(DataOutput in, int value)
focal_class.full_signature: static public void packInt(DataOutput in, int value)
focal_class.identifier: packInt
focal_class.modifiers: static public
focal_class.parameters: (DataOutput in, int value)
focal_class.return: void
focal_class.signature: void packInt(DataOutput in, int value)
focal_class.class_method_signature: Utils.unpackInt(DataInput is)
focal_class.full_signature: static public int unpackInt(DataInput is)
focal_class.identifier: unpackInt
focal_class.modifiers: static public
focal_class.parameters: (DataInput is)
focal_class.return: int
focal_class.signature: int unpackInt(DataInput is)
focal_class.class_method_signature: Utils.longHash(final long key)
focal_class.full_signature: public static int longHash(final long key)
focal_class.identifier: longHash
focal_class.modifiers: public static
focal_class.parameters: (final long key)
focal_class.return: int
focal_class.signature: int longHash(final long key)
focal_class.class_method_signature: Utils.clone(E value, Serializer<E> serializer)
focal_class.full_signature: public static E clone(E value, Serializer<E> serializer)
focal_class.identifier: clone
focal_class.modifiers: public static
focal_class.parameters: (E value, Serializer<E> serializer)
focal_class.return: E
focal_class.signature: E clone(E value, Serializer<E> serializer)
focal_class.class_method_signature: Utils.arrayPut(final Object[] array, final int pos, final Object value)
focal_class.full_signature: public static Object[] arrayPut(final Object[] array, final int pos, final Object value)
focal_class.identifier: arrayPut
focal_class.modifiers: public static
focal_class.parameters: (final Object[] array, final int pos, final Object value)
focal_class.return: Object[]
focal_class.signature: Object[] arrayPut(final Object[] array, final int pos, final Object value)
focal_class.class_method_signature: Utils.arrayLongPut(final long[] array, final int pos, final long value)
focal_class.full_signature: public static long[] arrayLongPut(final long[] array, final int pos, final long value)
focal_class.identifier: arrayLongPut
focal_class.modifiers: public static
focal_class.parameters: (final long[] array, final int pos, final long value)
focal_class.return: long[]
focal_class.signature: long[] arrayLongPut(final long[] array, final int pos, final long value)
focal_class.class_method_signature: Utils.nextPowTwo(final int value)
focal_class.full_signature: public static int nextPowTwo(final int value)
focal_class.identifier: nextPowTwo
focal_class.modifiers: public static
focal_class.parameters: (final int value)
focal_class.return: int
focal_class.signature: int nextPowTwo(final int value)
focal_class.class_method_signature: Utils.tempDbFile()
focal_class.full_signature: public static File tempDbFile()
focal_class.identifier: tempDbFile
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File tempDbFile()
focal_class.class_method_signature: Utils.isWindows()
focal_class.full_signature: public static boolean isWindows()
focal_class.identifier: isWindows
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isWindows()
focal_class.class_method_signature: Utils.isAndroid()
focal_class.full_signature: public static boolean isAndroid()
focal_class.identifier: isAndroid
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAndroid()
focal_class.class_method_signature: Utils.JVMSupportsLargeMappedFiles()
focal_class.full_signature: public static boolean JVMSupportsLargeMappedFiles()
focal_class.identifier: JVMSupportsLargeMappedFiles
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean JVMSupportsLargeMappedFiles()
focal_class.class_method_signature: Utils.checkMapValueIsNotCollecion(Object value)
focal_class.full_signature: public static void checkMapValueIsNotCollecion(Object value)
focal_class.identifier: checkMapValueIsNotCollecion
focal_class.modifiers: public static
focal_class.parameters: (Object value)
focal_class.return: void
focal_class.signature: void checkMapValueIsNotCollecion(Object value)
focal_class.class_method_signature: Utils.printProgress(final AtomicLong value)
focal_class.full_signature: public static void printProgress(final AtomicLong value)
focal_class.identifier: printProgress
focal_class.modifiers: public static
focal_class.parameters: (final AtomicLong value)
focal_class.return: void
focal_class.signature: void printProgress(final AtomicLong value)
focal_class.class_method_signature: Utils.serializer(Serializer<A> serializer, A value)
focal_class.full_signature: public static DataOutput2 serializer(Serializer<A> serializer, A value)
focal_class.identifier: serializer
focal_class.modifiers: public static
focal_class.parameters: (Serializer<A> serializer, A value)
focal_class.return: DataOutput2
focal_class.signature: DataOutput2 serializer(Serializer<A> serializer, A value)
focal_method.body: public static Object[] arrayPut(final Object[] array, final int pos, final Object value){
          final Object[] ret = Arrays.copyOf(array, array.length+1);
          if(pos<array.length){
              System.arraycopy(array, pos, ret, pos+1, array.length-pos);
          }
          ret[pos] = value;
          return ret;
      }
focal_method.class_method_signature: Utils.arrayPut(final Object[] array, final int pos, final Object value)
focal_method.full_signature: public static Object[] arrayPut(final Object[] array, final int pos, final Object value)
focal_method.identifier: arrayPut
focal_method.invocations: copyOf arraycopy
focal_method.modifiers: public static
focal_method.parameters: (final Object[] array, final int pos, final Object value)
focal_method.return: Object[]
focal_method.signature: Object[] arrayPut(final Object[] array, final int pos, final Object value)