@Beta
  public static <K, V> ImmutableSortedMap<K, V> copyOf(
      Iterable<? extends Entry<? extends K, ? extends V>> entries) {
    """
	Returns an immutable map containing the given entries, with keys sorted by the provided
	comparator.
	
	<p>This method is not type-safe, as it may be called on a map with keys that are not mutually
	comparable.
	
	@throws NullPointerException if any key or value in {@code map} is null
	@throws IllegalArgumentException if any two keys are equal according to the comparator
	@since 19.0
    """
    // Hack around K not being a subtype of Comparable.
    // Unsafe, see ImmutableSortedSetFauxverideShim.
    @SuppressWarnings("unchecked")
    Ordering<K> naturalOrder = (Ordering<K>) NATURAL_ORDER;
    return copyOf(entries, naturalOrder);
  }
@Beta
  public static <K, V> ImmutableSortedMap<K, V> copyOf(
      Iterable<? extends Entry<? extends K, ? extends V>> entries) {
    // Hack around K not being a subtype of Comparable.
    // Unsafe, see ImmutableSortedSetFauxverideShim.
    @SuppressWarnings("unchecked")
    Ordering<K> naturalOrder = (Ordering<K>) NATURAL_ORDER;
    return copyOf(entries, naturalOrder);
  }
@ Beta public static < K , V > ImmutableSortedMap < K , V > copyOf ( Iterable < ? extends Entry < ? extends K , ? extends V > > entries ) { // Hack around K not being a subtype of Comparable. // Unsafe, see ImmutableSortedSetFauxverideShim. @ SuppressWarnings ( "unchecked" ) Ordering < K > naturalOrder = ( Ordering < K > ) NATURAL_ORDER ; return copyOf ( entries , naturalOrder ) ; }
Returns an immutable map containing the given entries, with keys sorted by the provided
comparator.

<p>This method is not type-safe, as it may be called on a map with keys that are not mutually
comparable.

@throws NullPointerException if any key or value in {@code map} is null
@throws IllegalArgumentException if any two keys are equal according to the comparator
@since 19.0
Returns an immutable map containing the given entries with keys sorted by the provided comparator .