@Override public int hashCode() { return rankMap.hashCode(); }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.heap.hashCode(); return h; }
@Override public int hashCode() { return rankMap.hashCode(); }
@Override public int hashCode() { return asMapOfRanges().hashCode(); }
@Override public int hashCode() { return contents.hashCode(); }
@Override public int hashCode() { return overriddenShadows.hashCode(); }
@Override public int hashCode() { return contents.hashCode(); }
private SpecializationId(String runtimeShape, ImmutableMap<Class<?>, Class<?>> classRemapping) { this.runtimeShape = runtimeShape; this.classRemapping = classRemapping; this.hashCode = runtimeShape.hashCode() * 1000003 + classRemapping.hashCode(); }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.maker.hashCode(); h *= 1000003; h ^= this.arguments.hashCode(); return h; }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.placeholder.hashCode(); h *= 1000003; h ^= this.arguments.hashCode(); return h; }
@Override public int hashCode() { return map().hashCode(); }
@Override public int hashCode() { return asMapOfRanges().hashCode(); }
@Override public int hashCode() { return map().hashCode(); }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.placeholder.hashCode(); h *= 1000003; h ^= this.arguments.hashCode(); h *= 1000003; h ^= this.implementationFlow.hashCode(); return h; }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.name.hashCode(); h *= 1000003; h ^= this.returnType.hashCode(); h *= 1000003; h ^= this.annotatedParameters.hashCode(); h *= 1000003; h ^= this.matcher.hashCode(); h *= 1000003; h ^= this.annotations.hashCode(); return h; }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.annotations.hashCode(); h *= 1000003; h ^= this.templateTypeVariables.hashCode(); h *= 1000003; h ^= this.expressionArgumentTypes.hashCode(); h *= 1000003; h ^= this.expression.hashCode(); h *= 1000003; h ^= this.returnType.hashCode(); return h; }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.annotations.hashCode(); h *= 1000003; h ^= this.templateTypeVariables.hashCode(); h *= 1000003; h ^= this.expressionArgumentTypes.hashCode(); h *= 1000003; h ^= this.templateStatements.hashCode(); return h; }
static void checkEmpty(ConcurrentMap<?, ?> map) { checkEmpty(map.keySet()); checkEmpty(map.values()); checkEmpty(map.entrySet()); assertEquals(ImmutableMap.of(), map); assertEquals(ImmutableMap.of().hashCode(), map.hashCode()); assertEquals(ImmutableMap.of().toString(), map.toString()); if (map instanceof LocalCache) { LocalCache<?, ?> cchm = (LocalCache<?, ?>) map; checkValidState(cchm); assertTrue(cchm.isEmpty()); assertEquals(0, cchm.size()); for (LocalCache.Segment<?, ?> segment : cchm.segments) { assertEquals(0, segment.count); assertEquals(0, segmentSize(segment)); assertTrue(segment.writeQueue.isEmpty()); assertTrue(segment.accessQueue.isEmpty()); } } }
static void checkEmpty(ConcurrentMap<?, ?> map) { checkEmpty(map.keySet()); checkEmpty(map.values()); checkEmpty(map.entrySet()); assertEquals(ImmutableMap.of(), map); assertEquals(ImmutableMap.of().hashCode(), map.hashCode()); assertEquals(ImmutableMap.of().toString(), map.toString()); }
@Override protected boolean matchesSafely(Map<? extends K, ? extends V> map, Description description) { DescriptionBuilder desc = new DescriptionBuilder(description); desc.expectThat("empty keyset", map.keySet(), is(deeplyEmpty())); desc.expectThat("empty values", map.values(), is(deeplyEmpty())); desc.expectThat("empty entrySet", map.entrySet(), is(deeplyEmpty())); desc.expectThat("empty map", map, is(Collections.EMPTY_MAP)); desc.expectThat("Size != 0", map.size(), is(0)); desc.expectThat("Not empty", map.isEmpty(), is(true)); desc.expectThat("hashcode", map.hashCode(), is(ImmutableMap.of().hashCode())); desc.expectThat("toString", map, hasToString(ImmutableMap.of().toString())); return desc.matches(); }