/** * Constructs a new immutable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object * ) newImmutableMapOf(k1, v1)}. * * @param k1 the key of the sole mapping * @param v1 the value of the sole mapping * @param <V> the value type of the returned map * @return a new immutable map of the single specified mapping */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1); }
/** * Constructs a new immutable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object) newImmutableMapOf(k1, v1, k2, v2)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param <V> the value type of the returned map * @return a new immutable map of the two specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2); }
/** * Constructs a new immutable map of the single specified mapping. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object * ) newImmutableMapOf(k1, v1)}. * * @param k1 the key of the sole mapping * @param v1 the value of the sole mapping * @param <V> the value type of the returned map * @return a new immutable map of the single specified mapping */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1); }
/** * Constructs a new immutable map of the two specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object) newImmutableMapOf(k1, v1, k2, v2)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param <V> the value type of the returned map * @return a new immutable map of the two specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2); }
/** * Constructs a new immutable map of the three specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object, double, Object) newImmutableMapOf(k1, v1, k2, v2, * k3, v3)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @param <V> the value type of the returned map * @return a new immutable map of the three specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2, double k3, V v3) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2, k3, v3); }
/** * Constructs a new immutable map of the three specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object, double, Object) newImmutableMapOf(k1, v1, k2, v2, * k3, v3)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @param <V> the value type of the returned map * @return a new immutable map of the three specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2, double k3, V v3) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2, k3, v3); }
/** * Constructs a new immutable map of the four specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object, double, Object, double, Object * ) newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @param k4 the key of the fourth mapping * @param v4 the value of the fourth mapping * @param <V> the value type of the returned map * @return a new immutable map of the four specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2, double k3, V v3, double k4, V v4) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4); }
/** * Constructs a new immutable map of the five specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object, double, Object, double, Object, * double, Object) newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @param k4 the key of the fourth mapping * @param v4 the value of the fourth mapping * @param k5 the key of the fifth mapping * @param v5 the value of the fifth mapping * @param <V> the value type of the returned map * @return a new immutable map of the five specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2, double k3, V v3, double k4, V v4, double k5, V v5) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5); }
/** * Constructs a new immutable map of the five specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object, double, Object, double, Object, * double, Object) newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @param k4 the key of the fourth mapping * @param v4 the value of the fourth mapping * @param k5 the key of the fifth mapping * @param v5 the value of the fifth mapping * @param <V> the value type of the returned map * @return a new immutable map of the five specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2, double k3, V v3, double k4, V v4, double k5, V v5) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5); }
/** * Constructs a new immutable map of the four specified mappings. * * <p>This method simply delegates to {@link #getDefaultFactory() * }<tt>.</tt>{@link HashDoubleObjMapFactory#newImmutableMapOf(double, Object, * double, Object, double, Object, double, Object * ) newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4)}. * * @param k1 the key of the first mapping * @param v1 the value of the first mapping * @param k2 the key of the second mapping * @param v2 the value of the second mapping * @param k3 the key of the third mapping * @param v3 the value of the third mapping * @param k4 the key of the fourth mapping * @param v4 the value of the fourth mapping * @param <V> the value type of the returned map * @return a new immutable map of the four specified mappings */ @Nonnull public static <V> HashDoubleObjMap<V> newImmutableMapOf( double k1, V v1, double k2, V v2, double k3, V v3, double k4, V v4) { return getDefaultFactory().<V>newImmutableMapOf(k1, v1, k2, v2, k3, v3, k4, v4); }