(Iterable xs)
| 99 | } |
| 100 | |
| 101 | public static int hashOrdered(Iterable xs){ |
| 102 | int n = 0; |
| 103 | int hash = 1; |
| 104 | |
| 105 | for(Object x : xs) |
| 106 | { |
| 107 | hash = 31 * hash + Util.hasheq(x); |
| 108 | ++n; |
| 109 | } |
| 110 | |
| 111 | return mixCollHash(hash, n); |
| 112 | } |
| 113 | |
| 114 | public static int hashUnordered(Iterable xs){ |
| 115 | int hash = 0; |