--- jsr166/src/extra166y/CustomConcurrentHashMap.java 2009/06/30 14:56:53 1.2
+++ jsr166/src/extra166y/CustomConcurrentHashMap.java 2009/07/22 17:50:01 1.3
@@ -31,17 +31,17 @@ import sun.misc.Unsafe;
* establish a computed value, along with
* RemappingFunctions that can be used in method
* {@link CustomConcurrentHashMap#compute} to atomically
- * replace values.
+ * replace values.
*
*
Factory methods returning specialized forms for int
* keys and/or values, that may be more space-efficient
*
*
- *
+ *
* Per-map settings are established in constructors, as in the
* following usages (that assume static imports to simplify expression
* of configuration parameters):
- *
+ *
*
* {@code
* identityMap = new CustomConcurrentHashMap
@@ -55,7 +55,7 @@ import sun.misc.Unsafe;
* public boolean equal(Person k, Object x) {
* return x instanceOf Person && k.name.equals(((Person)x).name);
* }
- * public int hash(Object x) {
+ * public int hash(Object x) {
* return (x instanceOf Person)? ((Person)x).name.hashCode() : 0;
* }
* },
@@ -69,7 +69,7 @@ import sun.misc.Unsafe;
* and identity-based equality for keys. The third usage
* illustrates a map with a custom Equivalence that looks only at the
* name field of a (fictional) Person class.
- *
+ *
*
This class also includes nested class {@link KeySet}
* that provides space-efficient Set views of maps, also supporting
* method intern, which may be of use in canonicalizing
@@ -126,7 +126,7 @@ public class CustomConcurrentHashMap, Serializable {
private static final long serialVersionUID = 7259069246764182397L;
public final boolean equal(Object a, Object b) { return a == b; }
public final int hash(Object a) { return System.identityHashCode(a); }
}
- static final class EquivalenceUsingEquals
+ static final class EquivalenceUsingEquals
implements Equivalence