Mercurial > hg > IndexMetaContextualizer
view src/main/java/de/mpiwg/indexmeta/utils/IQuadMap.java @ 0:dfce13a5f5f9
nit project!
author | Jorge Urzua <jurzua@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 11 Apr 2013 15:25:26 +0200 |
parents | |
children |
line wrap: on
line source
package de.mpiwg.indexmeta.utils; import java.util.Collection; import java.util.Map; import java.util.Set; public interface IQuadMap<V> { int size(); boolean isEmpty(); boolean containsKey(QuadKey key); boolean containsValue(Object value); V get(QuadKey key); V put(QuadKey key, V value); V remove(QuadKey key); //void putAll(Map<? extends K, ? extends V> m); void clear(); Set<QuadKey> keySet(); Collection<V> values(); Set<Map.Entry<QuadKey, V>> entrySet(); boolean equals(Object o); /** * Returns the hash code value for this map. The hash code of a map is * defined to be the sum of the hash codes of each entry in the map's * <tt>entrySet()</tt> view. This ensures that <tt>m1.equals(m2)</tt> * implies that <tt>m1.hashCode()==m2.hashCode()</tt> for any two maps * <tt>m1</tt> and <tt>m2</tt>, as required by the general contract of * {@link Object#hashCode}. * * @return the hash code value for this map * @see Map.Entry#hashCode() * @see Object#equals(Object) * @see #equals(Object) */ int hashCode(); }