changeset 48861 | 47f19ff9903c |
parent 47216 | 71c04702a3d5 |
child 49873 | 26ebfe8ce852 |
48860:5bce1b7e7800 | 48861:47f19ff9903c |
---|---|
23 package org.graalvm.compiler.core.common.util; |
23 package org.graalvm.compiler.core.common.util; |
24 |
24 |
25 import java.util.ArrayList; |
25 import java.util.ArrayList; |
26 import java.util.List; |
26 import java.util.List; |
27 |
27 |
28 import org.graalvm.util.EconomicMap; |
28 import org.graalvm.collections.EconomicMap; |
29 import org.graalvm.util.Equivalence; |
29 import org.graalvm.collections.Equivalence; |
30 |
30 |
31 /** |
31 /** |
32 * Creates an array of T objects order by the occurrence frequency of each object. The most |
32 * Creates an array of T objects order by the occurrence frequency of each object. The most |
33 * frequently used object is the first one, the least frequently used the last one. If {@code null} |
33 * frequently used object is the first one, the least frequently used the last one. If {@code null} |
34 * is added, it is always the first element. |
34 * is added, it is always the first element. |