use of org.neo4j.collection.primitive.PrimitiveLongIntMap in project neo4j by neo4j.
the class PrimitiveLongMapTest method verifyMapRetainsAllEntries.
private void verifyMapRetainsAllEntries(List<Long> lst) {
PrimitiveLongIntMap map = Primitive.longIntMap();
Set<Long> set = new HashSet<>();
for (Long value : lst) {
assertThat(map.put(value, 1), is(-1));
assertTrue(set.add(value));
}
assertThat(map.size(), is(set.size()));
for (Long aLong : set) {
assertThat(map.get(aLong), is(1));
}
}
Aggregations