() {
+ @Override
+ public int compare(final String o1, final String o2) {
+ return o1.length() - o2.length();
+ }
+ };
+ PARTS_PATTERN = Pattern.compile("[^a-z0-9]");
+ }
+}
diff --git a/src/gnu/trove/TByteCollection.java b/src/gnu/trove/TByteCollection.java
new file mode 100644
index 0000000..036aba6
--- /dev/null
+++ b/src/gnu/trove/TByteCollection.java
@@ -0,0 +1,313 @@
+///////////////////////////////////////////////////////////////////////////////
+// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
+// Copyright (c) 2009, Rob Eden All Rights Reserved.
+// Copyright (c) 2009, Jeff Randall All Rights Reserved.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+///////////////////////////////////////////////////////////////////////////////
+
+package gnu.trove;
+
+//////////////////////////////////////////////////
+// THIS IS A GENERATED CLASS. DO NOT HAND EDIT! //
+//////////////////////////////////////////////////
+
+import gnu.trove.iterator.TByteIterator;
+import gnu.trove.procedure.TByteProcedure;
+
+import java.util.Collection;
+
+/**
+ * An interface that mimics the Collection interface.
+ *
+ * @author Eric D. Friedman
+ * @author Rob Eden
+ * @author Jeff Randall
+ * @version $Id: _E_Collection.template,v 1.1.2.2 2009/09/15 02:38:30
+ * upholderoftruth Exp $
+ */
+
+public interface TByteCollection {
+ static final long serialVersionUID = 1L;
+
+ /**
+ * Returns the value that is used to represent null. The default value is
+ * generally zero, but can be changed during construction of the collection.
+ *
+ * @return the value that represents null
+ */
+ byte getNoEntryValue();
+
+ /**
+ * Returns the number of elements in this collection (its cardinality). If this
+ * collection contains more than Integer.MAX_VALUE elements, returns
+ * Integer.MAX_VALUE.
+ *
+ * @return the number of elements in this collection (its cardinality)
+ */
+ int size();
+
+ /**
+ * Returns true if this collection contains no elements.
+ *
+ * @return true if this collection contains no elements
+ */
+ boolean isEmpty();
+
+ /**
+ * Returns true if this collection contains the specified element.
+ *
+ * @param entry
+ * an byte
value
+ * @return true if the collection contains the specified element.
+ */
+ boolean contains(byte entry);
+
+ /**
+ * Creates an iterator over the values of the collection. The iterator supports
+ * element deletion.
+ *
+ * @return an TByteIterator
value
+ */
+ TByteIterator iterator();
+
+ /**
+ * Returns an array containing all of the elements in this collection. If this
+ * collection makes any guarantees as to what order its elements are returned by
+ * its iterator, this method must return the elements in the same order.
+ *
+ *
+ * The returned array will be "safe" in that no references to it are maintained
+ * by this collection. (In other words, this method must allocate a new array
+ * even if this collection is backed by an array). The caller is thus free to
+ * modify the returned array.
+ *
+ *
+ * This method acts as bridge between array-based and collection-based APIs.
+ *
+ * @return an array containing all the elements in this collection
+ */
+ byte[] toArray();
+
+ /**
+ * Returns an array containing elements in this collection.
+ *
+ *
+ * If this collection fits in the specified array with room to spare (i.e., the
+ * array has more elements than this collection), the element in the array
+ * immediately following the end of the collection is collection to
+ * {@link #getNoEntryValue()}. (This is useful in determining the
+ * length of this collection only if the caller knows that this
+ * collection does not contain any elements representing null.)
+ *
+ *
+ * If the native array is smaller than the collection size, the array will be
+ * filled with elements in Iterator order until it is full and exclude the
+ * remainder.
+ *
+ *
+ * If this collection makes any guarantees as to what order its elements are
+ * returned by its iterator, this method must return the elements in the same
+ * order.
+ *
+ * @param dest
+ * the array into which the elements of this collection are to be
+ * stored.
+ * @return an byte[] containing all the elements in this collection
+ * @throws NullPointerException
+ * if the specified array is null
+ */
+ byte[] toArray(byte[] dest);
+
+ /**
+ * Inserts a value into the collection.
+ *
+ * @param entry
+ * a byte
value
+ * @return true if the collection was modified by the add operation
+ */
+ boolean add(byte entry);
+
+ /**
+ * Removes entry from the collection.
+ *
+ * @param entry
+ * an byte
value
+ * @return true if the collection was modified by the remove operation.
+ */
+ boolean remove(byte entry);
+
+ /**
+ * Tests the collection to determine if all of the elements in
+ * collection are present.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if all elements were present in the collection.
+ */
+ boolean containsAll(Collection> collection);
+
+ /**
+ * Tests the collection to determine if all of the elements in
+ * TByteCollection are present.
+ *
+ * @param collection
+ * a TByteCollection
value
+ * @return true if all elements were present in the collection.
+ */
+ boolean containsAll(TByteCollection collection);
+
+ /**
+ * Tests the collection to determine if all of the elements in array
+ * are present.
+ *
+ * @param array
+ * as array
of byte primitives.
+ * @return true if all elements were present in the collection.
+ */
+ boolean containsAll(byte[] array);
+
+ /**
+ * Adds all of the elements in collection to the collection.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if the collection was modified by the add all operation.
+ */
+ boolean addAll(Collection extends Byte> collection);
+
+ /**
+ * Adds all of the elements in the TByteCollection to the collection.
+ *
+ * @param collection
+ * a TByteCollection
value
+ * @return true if the collection was modified by the add all operation.
+ */
+ boolean addAll(TByteCollection collection);
+
+ /**
+ * Adds all of the elements in the array to the collection.
+ *
+ * @param array
+ * a array
of byte primitives.
+ * @return true if the collection was modified by the add all operation.
+ */
+ boolean addAll(byte[] array);
+
+ /**
+ * Removes any values in the collection which are not contained in
+ * collection.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if the collection was modified by the retain all operation
+ */
+ boolean retainAll(Collection> collection);
+
+ /**
+ * Removes any values in the collection which are not contained in
+ * TByteCollection.
+ *
+ * @param collection
+ * a TByteCollection
value
+ * @return true if the collection was modified by the retain all operation
+ */
+ boolean retainAll(TByteCollection collection);
+
+ /**
+ * Removes any values in the collection which are not contained in
+ * array.
+ *
+ * @param array
+ * an array
of byte primitives.
+ * @return true if the collection was modified by the retain all operation
+ */
+ boolean retainAll(byte[] array);
+
+ /**
+ * Removes all of the elements in collection from the collection.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if the collection was modified by the remove all operation.
+ */
+ boolean removeAll(Collection> collection);
+
+ /**
+ * Removes all of the elements in TByteCollection from the collection.
+ *
+ * @param collection
+ * a TByteCollection
value
+ * @return true if the collection was modified by the remove all operation.
+ */
+ boolean removeAll(TByteCollection collection);
+
+ /**
+ * Removes all of the elements in array from the collection.
+ *
+ * @param array
+ * an array
of byte primitives.
+ * @return true if the collection was modified by the remove all operation.
+ */
+ boolean removeAll(byte[] array);
+
+ /**
+ * Empties the collection.
+ */
+ void clear();
+
+ /**
+ * Executes procedure for each element in the collection.
+ *
+ * @param procedure
+ * a TByteProcedure
value
+ * @return false if the loop over the collection terminated because the
+ * procedure returned false for some value.
+ */
+ boolean forEach(TByteProcedure procedure);
+
+ // Comparison and hashing
+
+ /**
+ * Compares the specified object with this collection for equality. Returns
+ * true if the specified object is also a collection, the two
+ * collection have the same size, and every member of the specified collection
+ * is contained in this collection (or equivalently, every member of this
+ * collection is contained in the specified collection). This definition ensures
+ * that the equals method works properly across different implementations of the
+ * collection interface.
+ *
+ * @param o
+ * object to be compared for equality with this collection
+ * @return true if the specified object is equal to this collection
+ */
+ @Override
+ boolean equals(Object o);
+
+ /**
+ * Returns the hash code value for this collection. The hash code of a
+ * collection is defined to be the sum of the hash codes of the elements in the
+ * collection. This ensures that s1.equals(s2) implies that
+ * s1.hashCode()==s2.hashCode() for any two collection s1 and
+ * s2, as required by the general contract of {@link Object#hashCode}.
+ *
+ * @return the hash code value for this collection
+ * @see Object#equals(Object)
+ * @see Collection#equals(Object)
+ */
+ @Override
+ int hashCode();
+
+} // TByteCollection
diff --git a/src/gnu/trove/TCharCollection.java b/src/gnu/trove/TCharCollection.java
new file mode 100644
index 0000000..7cfd3eb
--- /dev/null
+++ b/src/gnu/trove/TCharCollection.java
@@ -0,0 +1,313 @@
+///////////////////////////////////////////////////////////////////////////////
+// Copyright (c) 2001, Eric D. Friedman All Rights Reserved.
+// Copyright (c) 2009, Rob Eden All Rights Reserved.
+// Copyright (c) 2009, Jeff Randall All Rights Reserved.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+///////////////////////////////////////////////////////////////////////////////
+
+package gnu.trove;
+
+//////////////////////////////////////////////////
+// THIS IS A GENERATED CLASS. DO NOT HAND EDIT! //
+//////////////////////////////////////////////////
+
+import gnu.trove.iterator.TCharIterator;
+import gnu.trove.procedure.TCharProcedure;
+
+import java.util.Collection;
+
+/**
+ * An interface that mimics the Collection interface.
+ *
+ * @author Eric D. Friedman
+ * @author Rob Eden
+ * @author Jeff Randall
+ * @version $Id: _E_Collection.template,v 1.1.2.2 2009/09/15 02:38:30
+ * upholderoftruth Exp $
+ */
+
+public interface TCharCollection {
+ static final long serialVersionUID = 1L;
+
+ /**
+ * Returns the value that is used to represent null. The default value is
+ * generally zero, but can be changed during construction of the collection.
+ *
+ * @return the value that represents null
+ */
+ char getNoEntryValue();
+
+ /**
+ * Returns the number of elements in this collection (its cardinality). If this
+ * collection contains more than Integer.MAX_VALUE elements, returns
+ * Integer.MAX_VALUE.
+ *
+ * @return the number of elements in this collection (its cardinality)
+ */
+ int size();
+
+ /**
+ * Returns true if this collection contains no elements.
+ *
+ * @return true if this collection contains no elements
+ */
+ boolean isEmpty();
+
+ /**
+ * Returns true if this collection contains the specified element.
+ *
+ * @param entry
+ * an char
value
+ * @return true if the collection contains the specified element.
+ */
+ boolean contains(char entry);
+
+ /**
+ * Creates an iterator over the values of the collection. The iterator supports
+ * element deletion.
+ *
+ * @return an TCharIterator
value
+ */
+ TCharIterator iterator();
+
+ /**
+ * Returns an array containing all of the elements in this collection. If this
+ * collection makes any guarantees as to what order its elements are returned by
+ * its iterator, this method must return the elements in the same order.
+ *
+ *
+ * The returned array will be "safe" in that no references to it are maintained
+ * by this collection. (In other words, this method must allocate a new array
+ * even if this collection is backed by an array). The caller is thus free to
+ * modify the returned array.
+ *
+ *
+ * This method acts as bridge between array-based and collection-based APIs.
+ *
+ * @return an array containing all the elements in this collection
+ */
+ char[] toArray();
+
+ /**
+ * Returns an array containing elements in this collection.
+ *
+ *
+ * If this collection fits in the specified array with room to spare (i.e., the
+ * array has more elements than this collection), the element in the array
+ * immediately following the end of the collection is collection to
+ * {@link #getNoEntryValue()}. (This is useful in determining the
+ * length of this collection only if the caller knows that this
+ * collection does not contain any elements representing null.)
+ *
+ *
+ * If the native array is smaller than the collection size, the array will be
+ * filled with elements in Iterator order until it is full and exclude the
+ * remainder.
+ *
+ *
+ * If this collection makes any guarantees as to what order its elements are
+ * returned by its iterator, this method must return the elements in the same
+ * order.
+ *
+ * @param dest
+ * the array into which the elements of this collection are to be
+ * stored.
+ * @return an char[] containing all the elements in this collection
+ * @throws NullPointerException
+ * if the specified array is null
+ */
+ char[] toArray(char[] dest);
+
+ /**
+ * Inserts a value into the collection.
+ *
+ * @param entry
+ * a char
value
+ * @return true if the collection was modified by the add operation
+ */
+ boolean add(char entry);
+
+ /**
+ * Removes entry from the collection.
+ *
+ * @param entry
+ * an char
value
+ * @return true if the collection was modified by the remove operation.
+ */
+ boolean remove(char entry);
+
+ /**
+ * Tests the collection to determine if all of the elements in
+ * collection are present.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if all elements were present in the collection.
+ */
+ boolean containsAll(Collection> collection);
+
+ /**
+ * Tests the collection to determine if all of the elements in
+ * TCharCollection are present.
+ *
+ * @param collection
+ * a TCharCollection
value
+ * @return true if all elements were present in the collection.
+ */
+ boolean containsAll(TCharCollection collection);
+
+ /**
+ * Tests the collection to determine if all of the elements in array
+ * are present.
+ *
+ * @param array
+ * as array
of char primitives.
+ * @return true if all elements were present in the collection.
+ */
+ boolean containsAll(char[] array);
+
+ /**
+ * Adds all of the elements in collection to the collection.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if the collection was modified by the add all operation.
+ */
+ boolean addAll(Collection extends Character> collection);
+
+ /**
+ * Adds all of the elements in the TCharCollection to the collection.
+ *
+ * @param collection
+ * a TCharCollection
value
+ * @return true if the collection was modified by the add all operation.
+ */
+ boolean addAll(TCharCollection collection);
+
+ /**
+ * Adds all of the elements in the array to the collection.
+ *
+ * @param array
+ * a array
of char primitives.
+ * @return true if the collection was modified by the add all operation.
+ */
+ boolean addAll(char[] array);
+
+ /**
+ * Removes any values in the collection which are not contained in
+ * collection.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if the collection was modified by the retain all operation
+ */
+ boolean retainAll(Collection> collection);
+
+ /**
+ * Removes any values in the collection which are not contained in
+ * TCharCollection.
+ *
+ * @param collection
+ * a TCharCollection
value
+ * @return true if the collection was modified by the retain all operation
+ */
+ boolean retainAll(TCharCollection collection);
+
+ /**
+ * Removes any values in the collection which are not contained in
+ * array.
+ *
+ * @param array
+ * an array
of char primitives.
+ * @return true if the collection was modified by the retain all operation
+ */
+ boolean retainAll(char[] array);
+
+ /**
+ * Removes all of the elements in collection from the collection.
+ *
+ * @param collection
+ * a Collection
value
+ * @return true if the collection was modified by the remove all operation.
+ */
+ boolean removeAll(Collection> collection);
+
+ /**
+ * Removes all of the elements in TCharCollection from the collection.
+ *
+ * @param collection
+ * a TCharCollection
value
+ * @return true if the collection was modified by the remove all operation.
+ */
+ boolean removeAll(TCharCollection collection);
+
+ /**
+ * Removes all of the elements in array from the collection.
+ *
+ * @param array
+ * an array
of char primitives.
+ * @return true if the collection was modified by the remove all operation.
+ */
+ boolean removeAll(char[] array);
+
+ /**
+ * Empties the collection.
+ */
+ void clear();
+
+ /**
+ * Executes procedure for each element in the collection.
+ *
+ * @param procedure
+ * a TCharProcedure
value
+ * @return false if the loop over the collection terminated because the
+ * procedure returned false for some value.
+ */
+ boolean forEach(TCharProcedure procedure);
+
+ // Comparison and hashing
+
+ /**
+ * Compares the specified object with this collection for equality. Returns
+ * true if the specified object is also a collection, the two
+ * collection have the same size, and every member of the specified collection
+ * is contained in this collection (or equivalently, every member of this
+ * collection is contained in the specified collection). This definition ensures
+ * that the equals method works properly across different implementations of the
+ * collection interface.
+ *
+ * @param o
+ * object to be compared for equality with this collection
+ * @return true if the specified object is equal to this collection
+ */
+ @Override
+ boolean equals(Object o);
+
+ /**
+ * Returns the hash code value for this collection. The hash code of a
+ * collection is defined to be the sum of the hash codes of the elements in the
+ * collection. This ensures that s1.equals(s2) implies that
+ * s1.hashCode()==s2.hashCode() for any two collection s1 and
+ * s2, as required by the general contract of {@link Object#hashCode}.
+ *
+ * @return the hash code value for this collection
+ * @see Object#equals(Object)
+ * @see Collection#equals(Object)
+ */
+ @Override
+ int hashCode();
+
+} // TCharCollection
diff --git a/src/gnu/trove/TCollections.java b/src/gnu/trove/TCollections.java
new file mode 100644
index 0000000..8d5cff2
--- /dev/null
+++ b/src/gnu/trove/TCollections.java
@@ -0,0 +1,4620 @@
+///////////////////////////////////////////////////////////////////////////////
+// Copyright (c) 2008, Robert D. Eden All Rights Reserved.
+// Copyright (c) 2009, Jeff Randall All Rights Reserved.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+///////////////////////////////////////////////////////////////////////////////
+
+package gnu.trove;
+
+//////////////////////////////////////////////////
+// THIS IS A GENERATED CLASS. DO NOT HAND EDIT! //
+//////////////////////////////////////////////////
+
+import gnu.trove.set.*;
+import gnu.trove.list.*;
+import gnu.trove.map.*;
+import gnu.trove.impl.unmodifiable.*;
+import gnu.trove.impl.sync.*;
+
+import java.util.RandomAccess;
+
+/**
+ * Trove equivalent of the {@link java.util.Collections} class.
+ */
+@SuppressWarnings({ "UnusedDeclaration" })
+public class TCollections {
+
+ // Disallow creation of instances of this class
+ private TCollections() {
+ }
+
+ ///////////////////////////
+ // TUnmodifiableCollections
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TDoubleCollection unmodifiableCollection(TDoubleCollection c) {
+ return new TUnmodifiableDoubleCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TFloatCollection unmodifiableCollection(TFloatCollection c) {
+ return new TUnmodifiableFloatCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TIntCollection unmodifiableCollection(TIntCollection c) {
+ return new TUnmodifiableIntCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TLongCollection unmodifiableCollection(TLongCollection c) {
+ return new TUnmodifiableLongCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TByteCollection unmodifiableCollection(TByteCollection c) {
+ return new TUnmodifiableByteCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TShortCollection unmodifiableCollection(TShortCollection c) {
+ return new TUnmodifiableShortCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive collection.
+ * This method allows modules to provide users with "read-only" access to
+ * internal collections. Query operations on the returned collection "read
+ * through" to the specified collection, and attempts to modify the returned
+ * collection, whether direct or via its iterator, result in an
+ * UnsupportedOperationException.
+ *
+ *
+ * The returned collection does not pass the hashCode and equals
+ * operations through to the backing collection, but relies on Object's
+ * equals and hashCode methods. This is necessary to preserve
+ * the contracts of these operations in the case that the backing collection is
+ * a set or a list.
+ *
+ *
+ * The returned collection will be serializable if the specified collection is
+ * serializable.
+ *
+ * @param c
+ * the collection for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive collection.
+ */
+ public static TCharCollection unmodifiableCollection(TCharCollection c) {
+ return new TUnmodifiableCharCollection(c);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TDoubleSet unmodifiableSet(TDoubleSet s) {
+ return new TUnmodifiableDoubleSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TFloatSet unmodifiableSet(TFloatSet s) {
+ return new TUnmodifiableFloatSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TIntSet unmodifiableSet(TIntSet s) {
+ return new TUnmodifiableIntSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TLongSet unmodifiableSet(TLongSet s) {
+ return new TUnmodifiableLongSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TByteSet unmodifiableSet(TByteSet s) {
+ return new TUnmodifiableByteSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TShortSet unmodifiableSet(TShortSet s) {
+ return new TUnmodifiableShortSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive set. This
+ * method allows modules to provide users with "read-only" access to internal
+ * sets. Query operations on the returned set "read through" to the specified
+ * set, and attempts to modify the returned set, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned set will be serializable if the specified set is serializable.
+ *
+ * @param s
+ * the set for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive set.
+ */
+ public static TCharSet unmodifiableSet(TCharSet s) {
+ return new TUnmodifiableCharSet(s);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TDoubleList unmodifiableList(TDoubleList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessDoubleList(list)
+ : new TUnmodifiableDoubleList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TFloatList unmodifiableList(TFloatList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessFloatList(list)
+ : new TUnmodifiableFloatList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TIntList unmodifiableList(TIntList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessIntList(list)
+ : new TUnmodifiableIntList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TLongList unmodifiableList(TLongList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessLongList(list)
+ : new TUnmodifiableLongList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TByteList unmodifiableList(TByteList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessByteList(list)
+ : new TUnmodifiableByteList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TShortList unmodifiableList(TShortList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessShortList(list)
+ : new TUnmodifiableShortList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive list. This
+ * method allows modules to provide users with "read-only" access to internal
+ * lists. Query operations on the returned list "read through" to the specified
+ * list, and attempts to modify the returned list, whether direct or via its
+ * iterator, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned list will be serializable if the specified list is serializable.
+ * Similarly, the returned list will implement {@link RandomAccess} if the
+ * specified list does.
+ *
+ * @param list
+ * the list for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive list.
+ */
+ public static TCharList unmodifiableList(TCharList list) {
+ return (list instanceof RandomAccess ? new TUnmodifiableRandomAccessCharList(list)
+ : new TUnmodifiableCharList(list));
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleDoubleMap unmodifiableMap(TDoubleDoubleMap m) {
+ return new TUnmodifiableDoubleDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleFloatMap unmodifiableMap(TDoubleFloatMap m) {
+ return new TUnmodifiableDoubleFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleIntMap unmodifiableMap(TDoubleIntMap m) {
+ return new TUnmodifiableDoubleIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleLongMap unmodifiableMap(TDoubleLongMap m) {
+ return new TUnmodifiableDoubleLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleByteMap unmodifiableMap(TDoubleByteMap m) {
+ return new TUnmodifiableDoubleByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleShortMap unmodifiableMap(TDoubleShortMap m) {
+ return new TUnmodifiableDoubleShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleCharMap unmodifiableMap(TDoubleCharMap m) {
+ return new TUnmodifiableDoubleCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatDoubleMap unmodifiableMap(TFloatDoubleMap m) {
+ return new TUnmodifiableFloatDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatFloatMap unmodifiableMap(TFloatFloatMap m) {
+ return new TUnmodifiableFloatFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatIntMap unmodifiableMap(TFloatIntMap m) {
+ return new TUnmodifiableFloatIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatLongMap unmodifiableMap(TFloatLongMap m) {
+ return new TUnmodifiableFloatLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatByteMap unmodifiableMap(TFloatByteMap m) {
+ return new TUnmodifiableFloatByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatShortMap unmodifiableMap(TFloatShortMap m) {
+ return new TUnmodifiableFloatShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatCharMap unmodifiableMap(TFloatCharMap m) {
+ return new TUnmodifiableFloatCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntDoubleMap unmodifiableMap(TIntDoubleMap m) {
+ return new TUnmodifiableIntDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntFloatMap unmodifiableMap(TIntFloatMap m) {
+ return new TUnmodifiableIntFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntIntMap unmodifiableMap(TIntIntMap m) {
+ return new TUnmodifiableIntIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntLongMap unmodifiableMap(TIntLongMap m) {
+ return new TUnmodifiableIntLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntByteMap unmodifiableMap(TIntByteMap m) {
+ return new TUnmodifiableIntByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntShortMap unmodifiableMap(TIntShortMap m) {
+ return new TUnmodifiableIntShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntCharMap unmodifiableMap(TIntCharMap m) {
+ return new TUnmodifiableIntCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongDoubleMap unmodifiableMap(TLongDoubleMap m) {
+ return new TUnmodifiableLongDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongFloatMap unmodifiableMap(TLongFloatMap m) {
+ return new TUnmodifiableLongFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongIntMap unmodifiableMap(TLongIntMap m) {
+ return new TUnmodifiableLongIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongLongMap unmodifiableMap(TLongLongMap m) {
+ return new TUnmodifiableLongLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongByteMap unmodifiableMap(TLongByteMap m) {
+ return new TUnmodifiableLongByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongShortMap unmodifiableMap(TLongShortMap m) {
+ return new TUnmodifiableLongShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongCharMap unmodifiableMap(TLongCharMap m) {
+ return new TUnmodifiableLongCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteDoubleMap unmodifiableMap(TByteDoubleMap m) {
+ return new TUnmodifiableByteDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteFloatMap unmodifiableMap(TByteFloatMap m) {
+ return new TUnmodifiableByteFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteIntMap unmodifiableMap(TByteIntMap m) {
+ return new TUnmodifiableByteIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteLongMap unmodifiableMap(TByteLongMap m) {
+ return new TUnmodifiableByteLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteByteMap unmodifiableMap(TByteByteMap m) {
+ return new TUnmodifiableByteByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteShortMap unmodifiableMap(TByteShortMap m) {
+ return new TUnmodifiableByteShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteCharMap unmodifiableMap(TByteCharMap m) {
+ return new TUnmodifiableByteCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortDoubleMap unmodifiableMap(TShortDoubleMap m) {
+ return new TUnmodifiableShortDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortFloatMap unmodifiableMap(TShortFloatMap m) {
+ return new TUnmodifiableShortFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortIntMap unmodifiableMap(TShortIntMap m) {
+ return new TUnmodifiableShortIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortLongMap unmodifiableMap(TShortLongMap m) {
+ return new TUnmodifiableShortLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortByteMap unmodifiableMap(TShortByteMap m) {
+ return new TUnmodifiableShortByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortShortMap unmodifiableMap(TShortShortMap m) {
+ return new TUnmodifiableShortShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortCharMap unmodifiableMap(TShortCharMap m) {
+ return new TUnmodifiableShortCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharDoubleMap unmodifiableMap(TCharDoubleMap m) {
+ return new TUnmodifiableCharDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharFloatMap unmodifiableMap(TCharFloatMap m) {
+ return new TUnmodifiableCharFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharIntMap unmodifiableMap(TCharIntMap m) {
+ return new TUnmodifiableCharIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharLongMap unmodifiableMap(TCharLongMap m) {
+ return new TUnmodifiableCharLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharByteMap unmodifiableMap(TCharByteMap m) {
+ return new TUnmodifiableCharByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharShortMap unmodifiableMap(TCharShortMap m) {
+ return new TUnmodifiableCharShortMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharCharMap unmodifiableMap(TCharCharMap m) {
+ return new TUnmodifiableCharCharMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TDoubleObjectMap unmodifiableMap(TDoubleObjectMap m) {
+ return new TUnmodifiableDoubleObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TFloatObjectMap unmodifiableMap(TFloatObjectMap m) {
+ return new TUnmodifiableFloatObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TIntObjectMap unmodifiableMap(TIntObjectMap m) {
+ return new TUnmodifiableIntObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TLongObjectMap unmodifiableMap(TLongObjectMap m) {
+ return new TUnmodifiableLongObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TByteObjectMap unmodifiableMap(TByteObjectMap m) {
+ return new TUnmodifiableByteObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TShortObjectMap unmodifiableMap(TShortObjectMap m) {
+ return new TUnmodifiableShortObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove primitive/Object map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TCharObjectMap unmodifiableMap(TCharObjectMap m) {
+ return new TUnmodifiableCharObjectMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove Object/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TObjectDoubleMap unmodifiableMap(TObjectDoubleMap m) {
+ return new TUnmodifiableObjectDoubleMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove Object/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TObjectFloatMap unmodifiableMap(TObjectFloatMap m) {
+ return new TUnmodifiableObjectFloatMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove Object/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TObjectIntMap unmodifiableMap(TObjectIntMap m) {
+ return new TUnmodifiableObjectIntMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove Object/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TObjectLongMap unmodifiableMap(TObjectLongMap m) {
+ return new TUnmodifiableObjectLongMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove Object/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an UnsupportedOperationException.
+ *
+ *
+ * The returned map will be serializable if the specified map is serializable.
+ *
+ * @param m
+ * the map for which an unmodifiable view is to be returned.
+ * @return an unmodifiable view of the specified Trove primitive/primitive map.
+ */
+ public static TObjectByteMap unmodifiableMap(TObjectByteMap m) {
+ return new TUnmodifiableObjectByteMap(m);
+ }
+
+ /**
+ * Returns an unmodifiable view of the specified Trove Object/primitive map.
+ * This method allows modules to provide users with "read-only" access to
+ * internal maps. Query operations on the returned map "read through" to the
+ * specified map, and attempts to modify the returned map, whether direct or via
+ * its collection views, result in an