Java中双波浪号(~~)的含义是什么?
浏览Guava的源代码时,遇到了以下代码(hashCode内部类的实现的一部分CartesianSet): int adjust = size() - 1; for (int i = 0; i < axes.size(); i++) { adjust *= 31; adjust = ~~adjust; // in GWT, we have to deal with integer overflow carefully } int hash = 1; for (Set<E> axis : axes) { hash = 31 * hash …