--- jsr166/src/extra166y/CustomConcurrentHashMap.java 2009/06/30 14:56:53 1.2
+++ jsr166/src/extra166y/CustomConcurrentHashMap.java 2009/11/22 19:09:19 1.9
@@ -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
@@ -53,10 +53,10 @@ import sun.misc.Unsafe;
* (STRONG,
* new Equivalence() {
* public boolean equal(Person k, Object x) {
- * return x instanceOf Person && k.name.equals(((Person)x).name);
+ * return x instanceof Person && k.name.equals(((Person)x).name);
* }
- * public int hash(Object x) {
- * return (x instanceOf Person)? ((Person)x).name.hashCode() : 0;
+ * public int hash(Object x) {
+ * return (x instanceof Person)? ((Person)x).name.hashCode() : 0;
* }
* },
* STRONG, EQUALS, 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
@@ -81,7 +81,7 @@ import sun.misc.Unsafe;
* via a background thread common across all maps. Because of the
* potential for asynchronous clearing of References, methods such as
* containsValue have weaker guarantees than you might
- * expect even in the absence of other explicity concurrent
+ * expect even in the absence of other explicitly concurrent
* operations. For example containsValue(value) may
* return true even if value is no longer available upon
* return from the method.
@@ -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