Fix spellings in javadoc

bug 25906, from Janek Bogucki


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-01-05 22:46:33 +00:00
parent fac886756a
commit 2ebe287c9b
18 changed files with 77 additions and 77 deletions

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ArrayStack.java,v 1.14 2003/09/20 14:01:17 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ArrayStack.java,v 1.15 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -77,7 +77,7 @@ import java.util.EmptyStackException;
* *
* @see java.util.Stack * @see java.util.Stack
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.14 $ $Date: 2003/09/20 14:01:17 $ * @version $Revision: 1.15 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Craig R. McClanahan * @author Craig R. McClanahan
* @author Paul Jack * @author Paul Jack
@ -85,7 +85,7 @@ import java.util.EmptyStackException;
*/ */
public class ArrayStack extends ArrayList implements Buffer { public class ArrayStack extends ArrayList implements Buffer {
/** Ensure serialization compatability */ /** Ensure serialization compatibility */
private static final long serialVersionUID = 2130079159931574599L; private static final long serialVersionUID = 2130079159931574599L;
/** /**

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Bag.java,v 1.12 2003/12/28 18:08:54 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/Bag.java,v 1.13 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -77,7 +77,7 @@ import java.util.Set;
* which unfortunately will break backwards compatibility with this version. * which unfortunately will break backwards compatibility with this version.
* *
* @since Commons Collections 2.0 * @since Commons Collections 2.0
* @version $Revision: 1.12 $ $Date: 2003/12/28 18:08:54 $ * @version $Revision: 1.13 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Chuck Burdick * @author Chuck Burdick
* @author Stephen Colebourne * @author Stephen Colebourne
@ -243,9 +243,9 @@ public interface Bag extends Collection {
// Bag implementations should follow these comments. // Bag implementations should follow these comments.
// /** // /**
// * Compares this Bag to another. // * Compares this Bag to another.
// * This Bag equals another Bag if it contains the same number of occurances of // * This Bag equals another Bag if it contains the same number of occurrences of
// * the same elements. // * the same elements.
// * This equals definition is compatable with the Set interface. // * This equals definition is compatible with the Set interface.
// * // *
// * @param obj the Bag to compare to // * @param obj the Bag to compare to
// * @return true if equal // * @return true if equal
@ -253,11 +253,11 @@ public interface Bag extends Collection {
// boolean equals(Object obj); // boolean equals(Object obj);
// //
// /** // /**
// * Gets a hash code for the Bag compatable with the definition of equals. // * Gets a hash code for the Bag compatible with the definition of equals.
// * The hash code is defined as the sum total of a hash code for each element. // * The hash code is defined as the sum total of a hash code for each element.
// * The per element hash code is defined as // * The per element hash code is defined as
// * <code>(e==null ? 0 : e.hashCode()) ^ noOccurances)</code>. // * <code>(e==null ? 0 : e.hashCode()) ^ noOccurances)</code>.
// * This hash code definition is compatable with the Set interface. // * This hash code definition is compatible with the Set interface.
// * // *
// * @return the hash code of the Bag // * @return the hash code of the Bag
// */ // */

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BeanMap.java,v 1.26 2004/01/05 21:37:13 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BeanMap.java,v 1.27 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -84,7 +84,7 @@ import org.apache.commons.collections.set.UnmodifiableSet;
* property is considered non existent in the Map * property is considered non existent in the Map
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.26 $ $Date: 2004/01/05 21:37:13 $ * @version $Revision: 1.27 $ $Date: 2004/01/05 22:46:33 $
* *
* @author James Strachan * @author James Strachan
* @author Stephen Colebourne * @author Stephen Colebourne
@ -277,7 +277,7 @@ public class BeanMap extends AbstractMap implements Cloneable {
} }
/** /**
* Puts all of the writeable properties from the given BeanMap into this * Puts all of the writable properties from the given BeanMap into this
* BeanMap. Read-only and Write-only properties will be ignored. * BeanMap. Read-only and Write-only properties will be ignored.
* *
* @param map the BeanMap whose properties to put * @param map the BeanMap whose properties to put
@ -765,7 +765,7 @@ public class BeanMap extends AbstractMap implements Cloneable {
* If no such constructor exists, and the given type is a primitive * If no such constructor exists, and the given type is a primitive
* type, then the given value is converted to a string using its * type, then the given value is converted to a string using its
* {@link Object#toString() toString()} method, and that string is * {@link Object#toString() toString()} method, and that string is
* parsed into the correct primitve type using, for instance, * parsed into the correct primitive type using, for instance,
* {@link Integer#valueOf(String)} to convert the string into an * {@link Integer#valueOf(String)} to convert the string into an
* <code>int</code>.<P> * <code>int</code>.<P>
* *

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BidiMap.java,v 1.11 2004/01/05 22:27:08 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BidiMap.java,v 1.12 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -70,7 +70,7 @@ package org.apache.commons.collections;
* a key to be looked up from a value with equal performance. * a key to be looked up from a value with equal performance.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.11 $ $Date: 2004/01/05 22:27:08 $ * @version $Revision: 1.12 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Stephen Colebourne * @author Stephen Colebourne
*/ */
@ -118,7 +118,7 @@ public interface BidiMap extends IterableMap {
* *
* @throws UnsupportedOperationException if the <code>put</code> method is not supported * @throws UnsupportedOperationException if the <code>put</code> method is not supported
* @throws ClassCastException (optional) if the map limits the type of the * @throws ClassCastException (optional) if the map limits the type of the
* value and the specifed value is inappropriate * value and the specified value is inappropriate
* @throws IllegalArgumentException (optional) if the map limits the values * @throws IllegalArgumentException (optional) if the map limits the values
* in some way and the value was invalid * in some way and the value was invalid
* @throws NullPointerException (optional) if the map limits the values to * @throws NullPointerException (optional) if the map limits the values to
@ -138,7 +138,7 @@ public interface BidiMap extends IterableMap {
* @return the mapped key, or <code>null</code> if not found * @return the mapped key, or <code>null</code> if not found
* *
* @throws ClassCastException (optional) if the map limits the type of the * @throws ClassCastException (optional) if the map limits the type of the
* value and the specifed value is inappropriate * value and the specified value is inappropriate
* @throws NullPointerException (optional) if the map limits the values to * @throws NullPointerException (optional) if the map limits the values to
* non-null and null was specified * non-null and null was specified
*/ */
@ -157,7 +157,7 @@ public interface BidiMap extends IterableMap {
* @return the key that was removed, <code>null</code> if nothing removed * @return the key that was removed, <code>null</code> if nothing removed
* *
* @throws ClassCastException (optional) if the map limits the type of the * @throws ClassCastException (optional) if the map limits the type of the
* value and the specifed value is inappropriate * value and the specified value is inappropriate
* @throws NullPointerException (optional) if the map limits the values to * @throws NullPointerException (optional) if the map limits the values to
* non-null and null was specified * non-null and null was specified
* @throws UnsupportedOperationException if this method is not supported * @throws UnsupportedOperationException if this method is not supported

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BinaryHeap.java,v 1.19 2004/01/02 02:14:28 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BinaryHeap.java,v 1.20 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -67,7 +67,7 @@ import java.util.NoSuchElementException;
* <p> * <p>
* The <code>PriorityQueue</code> interface has now been replaced for most uses * The <code>PriorityQueue</code> interface has now been replaced for most uses
* by the <code>Buffer</code> interface. This class and the interface are * by the <code>Buffer</code> interface. This class and the interface are
* retained for backwards compatability. The intended replacement is * retained for backwards compatibility. The intended replacement is
* {@link org.apache.commons.collections.buffer.PriorityBuffer PriorityBuffer}. * {@link org.apache.commons.collections.buffer.PriorityBuffer PriorityBuffer}.
* <p> * <p>
* The removal order of a binary heap is based on either the natural sort * The removal order of a binary heap is based on either the natural sort
@ -92,7 +92,7 @@ import java.util.NoSuchElementException;
* </pre> * </pre>
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.19 $ $Date: 2004/01/02 02:14:28 $ * @version $Revision: 1.20 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Peter Donald * @author Peter Donald
* @author Ram Chidambaram * @author Ram Chidambaram
@ -321,7 +321,7 @@ public final class BinaryHeap extends AbstractCollection
/** /**
* Percolates element down heap from the position given by the index. * Percolates element down heap from the position given by the index.
* <p> * <p>
* Assumes it is a mimimum heap. * Assumes it is a minimum heap.
* *
* @param index the index for the element * @param index the index for the element
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.52 2004/01/04 18:03:41 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CollectionUtils.java,v 1.53 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -81,7 +81,7 @@ import org.apache.commons.collections.iterators.EnumerationIterator;
* Provides utility methods and decorators for {@link Collection} instances. * Provides utility methods and decorators for {@link Collection} instances.
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.52 $ $Date: 2004/01/04 18:03:41 $ * @version $Revision: 1.53 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Rodney Waldhoff * @author Rodney Waldhoff
* @author Paul Jack * @author Paul Jack
@ -255,7 +255,7 @@ public class CollectionUtils {
/** /**
* Returns a {@link Map} mapping each unique element in the given * Returns a {@link Map} mapping each unique element in the given
* {@link Collection} to an {@link Integer} representing the number * {@link Collection} to an {@link Integer} representing the number
* of occurences of that element in the {@link Collection}. * of occurrences of that element in the {@link Collection}.
* <p> * <p>
* Only those elements present in the collection will appear as * Only those elements present in the collection will appear as
* keys in the map. * keys in the map.

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CursorableLinkedList.java,v 1.20 2004/01/04 18:04:15 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/CursorableLinkedList.java,v 1.21 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -87,14 +87,14 @@ import java.lang.ref.WeakReference;
* and now returns the cursor from the listIterator method. Will be removed in v4.0 * and now returns the cursor from the listIterator method. Will be removed in v4.0
* @see java.util.LinkedList * @see java.util.LinkedList
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.20 $ $Date: 2004/01/04 18:04:15 $ * @version $Revision: 1.21 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Rodney Waldhoff * @author Rodney Waldhoff
* @author Janek Bogucki * @author Janek Bogucki
* @author Simon Kitching * @author Simon Kitching
*/ */
public class CursorableLinkedList implements List, Serializable { public class CursorableLinkedList implements List, Serializable {
/** Ensure serialization compatability */ /** Ensure serialization compatibility */
private static final long serialVersionUID = 8836393098519411393L; private static final long serialVersionUID = 8836393098519411393L;
//--- public methods --------------------------------------------- //--- public methods ---------------------------------------------

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DefaultMapEntry.java,v 1.18 2004/01/04 18:37:42 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/DefaultMapEntry.java,v 1.19 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -64,7 +64,7 @@ import java.util.Map;
* *
* @deprecated Use the version in the keyvalue subpackage. Will be removed in v4.0 * @deprecated Use the version in the keyvalue subpackage. Will be removed in v4.0
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.18 $ $Date: 2004/01/04 18:37:42 $ * @version $Revision: 1.19 $ $Date: 2004/01/05 22:46:33 $
* *
* @author James Strachan * @author James Strachan
* @author Michael A. Smith * @author Michael A. Smith
@ -185,7 +185,7 @@ public class DefaultMapEntry implements Map.Entry, KeyValue {
* <p> * <p>
* Implemented per API documentation of {@link java.util.Map.Entry#hashCode()} * Implemented per API documentation of {@link java.util.Map.Entry#hashCode()}
* *
* @return a suitable hashcode * @return a suitable hash code
*/ */
public int hashCode() { public int hashCode() {
return (getKey() == null ? 0 : getKey().hashCode()) ^ return (getKey() == null ? 0 : getKey().hashCode()) ^

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ExtendedProperties.java,v 1.18 2003/12/29 18:18:34 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ExtendedProperties.java,v 1.19 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -165,7 +165,7 @@ import java.util.Vector;
* it, go ahead and tune it up! * it, go ahead and tune it up!
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.18 $ $Date: 2003/12/29 18:18:34 $ * @version $Revision: 1.19 $ $Date: 2004/01/05 22:46:33 $
* *
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a> * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
* @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a> * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
@ -241,7 +241,7 @@ public class ExtendedProperties extends Hashtable {
} }
/** /**
* Recursive handler for multple levels of interpolation. * Recursive handler for multiple levels of interpolation.
* *
* When called the first time, priorVariables should be null. * When called the first time, priorVariables should be null.
* *

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/FastArrayList.java,v 1.12 2003/12/24 01:13:55 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/FastArrayList.java,v 1.13 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -96,10 +96,10 @@ import java.util.ListIterator;
* before the internal collection is fully formed. * before the internal collection is fully formed.
* For more information on the double-checked locking idiom, see the * For more information on the double-checked locking idiom, see the
* <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html"> * <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html">
* Double-Checked Locking Idiom Is Broken Declartion</a>.</p> * Double-Checked Locking Idiom Is Broken Declaration</a>.</p>
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.12 $ $Date: 2003/12/24 01:13:55 $ * @version $Revision: 1.13 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Craig R. McClanahan * @author Craig R. McClanahan
*/ */

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/FastHashMap.java,v 1.14 2003/08/31 17:26:44 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/FastHashMap.java,v 1.15 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -96,10 +96,10 @@ import java.util.Set;
* before the internal collection is fully formed. * before the internal collection is fully formed.
* For more information on the double-checked locking idiom, see the * For more information on the double-checked locking idiom, see the
* <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html"> * <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html">
* Double-Checked Locking Idiom Is Broken Declartion</a>.</p> * Double-Checked Locking Idiom Is Broken Declaration</a>.</p>
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.14 $ $Date: 2003/08/31 17:26:44 $ * @version $Revision: 1.15 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Craig R. McClanahan * @author Craig R. McClanahan
* @author Stephen Colebourne * @author Stephen Colebourne
@ -429,7 +429,7 @@ public class FastHashMap extends HashMap {
* exactly the code that is used to define the list hash function in the * exactly the code that is used to define the list hash function in the
* documentation for the <code>Map.hashCode</code> method. * documentation for the <code>Map.hashCode</code> method.
* *
* @return suitable integer hashcode * @return suitable integer hash code
*/ */
public int hashCode() { public int hashCode() {
if (fast) { if (fast) {
@ -499,7 +499,7 @@ public class FastHashMap extends HashMap {
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
/** /**
* Abstract collection implementation shared by ketSet(), values() and entrySet(). * Abstract collection implementation shared by keySet(), values() and entrySet().
*/ */
private abstract class CollectionView implements Collection { private abstract class CollectionView implements Collection {

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/FastTreeMap.java,v 1.13 2003/08/31 17:26:43 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/FastTreeMap.java,v 1.14 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -98,10 +98,10 @@ import java.util.TreeMap;
* before the internal collection is fully formed. * before the internal collection is fully formed.
* For more information on the double-checked locking idiom, see the * For more information on the double-checked locking idiom, see the
* <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html"> * <a href="http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html">
* Double-Checked Locking Idiom Is Broken Declartion</a>.</p> * Double-Checked Locking Idiom Is Broken Declaration</a>.</p>
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.13 $ $Date: 2003/08/31 17:26:43 $ * @version $Revision: 1.14 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Craig R. McClanahan * @author Craig R. McClanahan
* @author Stephen Colebourne * @author Stephen Colebourne
@ -480,7 +480,7 @@ public class FastTreeMap extends TreeMap {
* exactly the code that is used to define the list hash function in the * exactly the code that is used to define the list hash function in the
* documentation for the <code>Map.hashCode</code> method. * documentation for the <code>Map.hashCode</code> method.
* *
* @return a suitable integer hashcode * @return a suitable integer hash code
*/ */
public int hashCode() { public int hashCode() {
if (fast) { if (fast) {
@ -607,7 +607,7 @@ public class FastTreeMap extends TreeMap {
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
/** /**
* Abstract collection implementation shared by ketSet(), values() and entrySet(). * Abstract collection implementation shared by keySet(), values() and entrySet().
*/ */
private abstract class CollectionView implements Collection { private abstract class CollectionView implements Collection {

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ListUtils.java,v 1.24 2004/01/04 18:03:41 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/ListUtils.java,v 1.25 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -75,7 +75,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
* Provides utility methods and decorators for {@link List} instances. * Provides utility methods and decorators for {@link List} instances.
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.24 $ $Date: 2004/01/04 18:03:41 $ * @version $Revision: 1.25 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Federico Barbieri * @author Federico Barbieri
* @author Peter Donald * @author Peter Donald
@ -234,7 +234,7 @@ public class ListUtils {
} }
/** /**
* Generates a hashcode using the algorithm specified in * Generates a hash code using the algorithm specified in
* {@link java.util.List#hashCode()}. * {@link java.util.List#hashCode()}.
* <p> * <p>
* This method is useful for implementing <code>List</code> when you cannot * This method is useful for implementing <code>List</code> when you cannot

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapUtils.java,v 1.41 2003/12/11 23:45:02 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapUtils.java,v 1.42 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -88,7 +88,7 @@ import org.apache.commons.collections.map.UnmodifiableSortedMap;
* Provides utility methods and decorators for * Provides utility methods and decorators for
* {@link Map} and {@link SortedMap} instances. * {@link Map} and {@link SortedMap} instances.
* <p> * <p>
* It contains various typesafe methods * It contains various type safe methods
* as well as other useful features like deep copying. * as well as other useful features like deep copying.
* <p> * <p>
* It also provides the following decorators: * It also provides the following decorators:
@ -109,7 +109,7 @@ import org.apache.commons.collections.map.UnmodifiableSortedMap;
* </ul> * </ul>
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.41 $ $Date: 2003/12/11 23:45:02 $ * @version $Revision: 1.42 $ $Date: 2004/01/05 22:46:33 $
* *
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a> * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
* @author <a href="mailto:nissim@nksystems.com">Nissim Karpenstein</a> * @author <a href="mailto:nissim@nksystems.com">Nissim Karpenstein</a>
@ -994,7 +994,7 @@ public class MapUtils {
* <em>(this Map)</em> is printed out. If the contents include a * <em>(this Map)</em> is printed out. If the contents include a
* parent container of the map, the the text <em>(ancestor[i] Map)</em> is * parent container of the map, the the text <em>(ancestor[i] Map)</em> is
* printed, where i actually indicates the number of levels which must be * printed, where i actually indicates the number of levels which must be
* traversed in the sequential list of ancesters (e.g. father, grandfather, * traversed in the sequential list of ancestors (e.g. father, grandfather,
* great-grandfather, etc). * great-grandfather, etc).
* *
* @param out the stream to print to * @param out the stream to print to

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/PriorityQueue.java,v 1.9 2004/01/01 18:58:55 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/PriorityQueue.java,v 1.10 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights * Copyright (c) 2001-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -61,10 +61,10 @@ package org.apache.commons.collections;
* Defines a collection for priority queues, which can insert, peek and pop. * Defines a collection for priority queues, which can insert, peek and pop.
* <p> * <p>
* This interface is now replaced by the <code>Buffer</code> interface. * This interface is now replaced by the <code>Buffer</code> interface.
* It remains for backwards compatability. * It remains for backwards compatibility.
* *
* @since Commons Collections 1.0 * @since Commons Collections 1.0
* @version $Revision: 1.9 $ $Date: 2004/01/01 18:58:55 $ * @version $Revision: 1.10 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Peter Donald * @author Peter Donald
*/ */

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/SequencedHashMap.java,v 1.25 2003/12/28 22:50:42 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/SequencedHashMap.java,v 1.26 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights * Copyright (c) 2002-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -93,7 +93,7 @@ import org.apache.commons.collections.list.UnmodifiableList;
* @see org.apache.commons.collections.map.LinkedMap * @see org.apache.commons.collections.map.LinkedMap
* @see org.apache.commons.collections.map.ListOrderedMap * @see org.apache.commons.collections.map.ListOrderedMap
* @since Commons Collections 2.0 * @since Commons Collections 2.0
* @version $Revision: 1.25 $ $Date: 2003/12/28 22:50:42 $ * @version $Revision: 1.26 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Michael A. Smith * @author Michael A. Smith
* @author Daniel Rall * @author Daniel Rall
@ -733,7 +733,7 @@ public class SequencedHashMap implements Map, Cloneable, Externalizable {
* should be either {@link #KEY}, {@link #VALUE}, or {@link #ENTRY}. To * should be either {@link #KEY}, {@link #VALUE}, or {@link #ENTRY}. To
* save a tiny bit of memory, this field is also used as a marker for when * save a tiny bit of memory, this field is also used as a marker for when
* remove has been called on the current object to prevent a second remove * remove has been called on the current object to prevent a second remove
* on the same element. Essientially, if this value is negative (i.e. the * on the same element. Essentially, if this value is negative (i.e. the
* bit specified by {@link #REMOVED_MASK} is set), the current position * bit specified by {@link #REMOVED_MASK} is set), the current position
* has been removed. If positive, remove can still be called. * has been removed. If positive, remove can still be called.
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/SetUtils.java,v 1.22 2004/01/04 18:03:41 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/SetUtils.java,v 1.23 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -81,7 +81,7 @@ import org.apache.commons.collections.set.UnmodifiableSortedSet;
* {@link Set} and {@link SortedSet} instances. * {@link Set} and {@link SortedSet} instances.
* *
* @since Commons Collections 2.1 * @since Commons Collections 2.1
* @version $Revision: 1.22 $ $Date: 2004/01/04 18:03:41 $ * @version $Revision: 1.23 $ $Date: 2004/01/05 22:46:33 $
* *
* @author Paul Jack * @author Paul Jack
* @author Stephen Colebourne * @author Stephen Colebourne
@ -149,7 +149,7 @@ public class SetUtils {
} }
/** /**
* Generates a hashcode using the algorithm specified in * Generates a hash code using the algorithm specified in
* {@link java.util.Set#hashCode()}. * {@link java.util.Set#hashCode()}.
* <p> * <p>
* This method is useful for implementing <code>Set</code> when you cannot * This method is useful for implementing <code>Set</code> when you cannot
@ -157,7 +157,7 @@ public class SetUtils {
* collection types to use the Set implementation algorithm. * collection types to use the Set implementation algorithm.
* *
* @see java.util.Set#hashCode() * @see java.util.Set#hashCode()
* @param set the set to calculate the hashcode for, may be null * @param set the set to calculate the hash code for, may be null
* @return the hash code * @return the hash code
*/ */
public static int hashCodeForSet(final Collection set) { public static int hashCodeForSet(final Collection set) {

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/StaticBucketMap.java,v 1.15 2003/12/14 16:10:38 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/StaticBucketMap.java,v 1.16 2004/01/05 22:46:33 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights * Copyright (c) 2002-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -74,7 +74,7 @@ import java.util.Set;
* {@link #remove(Object) remove} and {@link #containsKey(Object) containsKey} * {@link #remove(Object) remove} and {@link #containsKey(Object) containsKey}
* operations, assuming (approximate) uniform hashing and * operations, assuming (approximate) uniform hashing and
* that the number of entries does not exceed the number of buckets. If the * that the number of entries does not exceed the number of buckets. If the
* number of entries exceeds the number of buckets or if the hashcodes of the * number of entries exceeds the number of buckets or if the hash codes of the
* objects are not uniformly distributed, these operations have a worst case * objects are not uniformly distributed, these operations have a worst case
* scenario that is proportional to the number of elements in the map * scenario that is proportional to the number of elements in the map
* (<i>O(n)</i>).<p> * (<i>O(n)</i>).<p>
@ -131,7 +131,7 @@ import java.util.Set;
* *
* @deprecated Moved to map subpackage. Due to be removed in v4.0. * @deprecated Moved to map subpackage. Due to be removed in v4.0.
* @since Commons Collections 2.1 * @since Commons Collections 2.1
* @version $Revision: 1.15 $ $Date: 2003/12/14 16:10:38 $ * @version $Revision: 1.16 $ $Date: 2004/01/05 22:46:33 $
* *
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a> * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
* @author <a href="mailto:g-froehlich@gmx.de">Gerhard Froehlich</a> * @author <a href="mailto:g-froehlich@gmx.de">Gerhard Froehlich</a>