@Override
        public int hashCode() {
            int result = 0;
            for (int i = colGetSize() - 1; i >= 0; i--) {
                final Object key = colGetEntry(i, 0);
                final Object value = colGetEntry(i, 1);
                result += ((key == null ? 0 : key.hashCode()) ^
                        (value == null ? 0 : value.hashCode()));
            }
            return result;
        }
Helper for writing standard Java collection interfaces to a data
structure like {@link ArrayMap}.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/MapCollections.java