@@ -463,10 +463,6 @@ private void initSegments(int segments, int segmentsTier, int upFrontScale) {
463463 * OK to override this method just returning {@code false}: <pre><code>
464464 * class IdentitySmoothieMap<K, V> extends SmoothieMap<K, V> {
465465 *
466- * public IdentitySmoothieMap(long expectedSize) {
467- * super(expectedSize);
468- * }
469- *
470466 * @Override
471467 * protected boolean keysEqual(@NotNull Object queriedKey, @Nullable K keyInMap) {
472468 * return false;
@@ -483,6 +479,7 @@ private void initSegments(int segments, int segmentsTier, int upFrontScale) {
483479 * If you want to subclass parameterized {@code SmoothieMap}, you should cast the arguments to
484480 * the key parameter class yourself, e. g.: <pre><code>
485481 * class DomainToIpMap extends SmoothieMap<String, Integer> {
482+ *
486483 * @Override
487484 * protected boolean keysEqual(@NotNull Object queriedDomain,
488485 * @Nullable String domainInMap) {
@@ -491,7 +488,7 @@ private void initSegments(int segments, int segmentsTier, int upFrontScale) {
491488 *
492489 * @Override
493490 * protected long keyHashCode(@Nullable Object domain) {
494- * return LongHashFunctions .xx_r39().hashChars(((String) domain).toLowerCase());
491+ * return LongHashFunction .xx_r39().hashChars(((String) domain).toLowerCase());
495492 * }
496493 * }</code></pre>
497494 *
@@ -529,10 +526,6 @@ protected boolean keysEqual(@NotNull Object queriedKey, @Nullable K keyInMap) {
529526 * occasionally, you could skip {@code null} checks in this method: <pre><code>
530527 * class NonNullKeysSmoothieMap<K, V> extends SmoothieMap<K, V> {
531528 *
532- * public NonNullKeysSmoothieMap(long expectedSize) {
533- * super(expectedSize);
534- * }
535- *
536529 * @Override
537530 * protected long keyHashCode(Object key) {
538531 * // throws NullPointerException if the key is null
@@ -568,6 +561,7 @@ protected long keyHashCode(@Nullable Object key) {
568561 * ClassCastException}. If you want to subclass parameterized {@code SmoothieMap}, you should
569562 * cast the arguments to the value parameter class yourself, e. g.: <pre><code>
570563 * class IpToDomainMap extends SmoothieMap<Integer, String> {
564+ *
571565 * @Override
572566 * protected boolean valuesEqual(@NotNull Object d1, @Nullable String d2) {
573567 * return ((String) d1).equalsIgnoreCase(d2);
0 commit comments