/** @return an array of the proper size with {@code null} as the key of the middle element. */ protected Entry<K, V>[] createArrayWithNullKey() { Entry<K, V>[] array = createSamplesArray(); final int nullKeyLocation = getNullLocation(); final Entry<K, V> oldEntry = array[nullKeyLocation]; array[nullKeyLocation] = Helpers.mapEntry(null, oldEntry.getValue()); return array; }
/** @return an array of the proper size with {@code null} as the value of the middle element. */ protected Entry<K, V>[] createArrayWithNullValue() { Entry<K, V>[] array = createSamplesArray(); final int nullValueLocation = getNullLocation(); final Entry<K, V> oldEntry = array[nullValueLocation]; array[nullValueLocation] = Helpers.mapEntry(oldEntry.getKey(), null); return array; }
/** * @return an array of the proper size with {@code null} as the key and value of the middle * element. */ protected Entry<K, V>[] createArrayWithNullKeyAndValue() { Entry<K, V>[] array = createSamplesArray(); final int nullValueLocation = getNullLocation(); array[nullValueLocation] = Helpers.mapEntry(null, null); return array; }
/** * @return an array of the proper size with {@code null} as the key of the * middle element. */ protected Map.Entry<K, V>[] createArrayWithNullKey() { Map.Entry<K, V>[] array = createSamplesArray(); final int nullKeyLocation = getNullLocation(); final Map.Entry<K, V> oldEntry = array[nullKeyLocation]; array[nullKeyLocation] = Helpers.mapEntry(null, oldEntry.getValue()); return array; }
/** @return an array of the proper size with {@code null} as the key of the middle element. */ protected Entry<K, V>[] createArrayWithNullKey() { Entry<K, V>[] array = createSamplesArray(); final int nullKeyLocation = getNullLocation(); final Entry<K, V> oldEntry = array[nullKeyLocation]; array[nullKeyLocation] = Helpers.mapEntry(null, oldEntry.getValue()); return array; }
/** @return an array of the proper size with {@code null} as the value of the middle element. */ protected Entry<K, V>[] createArrayWithNullValue() { Entry<K, V>[] array = createSamplesArray(); final int nullValueLocation = getNullLocation(); final Entry<K, V> oldEntry = array[nullValueLocation]; array[nullValueLocation] = Helpers.mapEntry(oldEntry.getKey(), null); return array; }
/** * @return an array of the proper size with {@code null} as the value of the * middle element. */ protected Map.Entry<K, V>[] createArrayWithNullValue() { Map.Entry<K, V>[] array = createSamplesArray(); final int nullValueLocation = getNullLocation(); final Map.Entry<K, V> oldEntry = array[nullValueLocation]; array[nullValueLocation] = Helpers.mapEntry(oldEntry.getKey(), null); return array; }
/** * @return an array of the proper size with {@code null} as the key and value of the middle * element. */ protected Entry<K, V>[] createArrayWithNullKeyAndValue() { Entry<K, V>[] array = createSamplesArray(); final int nullValueLocation = getNullLocation(); array[nullValueLocation] = Helpers.mapEntry(null, null); return array; }
/** * @return an array of the proper size with {@code null} as the key and value of the * middle element. */ protected Map.Entry<K, V>[] createArrayWithNullKeyAndValue() { Map.Entry<K, V>[] array = createSamplesArray(); final int nullValueLocation = getNullLocation(); array[nullValueLocation] = Helpers.mapEntry(null, null); return array; }