You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/06/04 09:50:02 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils IntVector.java
sboag 01/06/04 00:50:02
Modified: java/src/org/apache/xml/utils Tag: DTM_EXP IntVector.java
Log:
Added another constructor, so the growth size can be specified.
Revision Changes Path
No revision
No revision
1.2.2.3 +14 -0 xml-xalan/java/src/org/apache/xml/utils/IntVector.java
Index: IntVector.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/IntVector.java,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -r1.2.2.2 -r1.2.2.3
--- IntVector.java 2001/05/14 05:10:22 1.2.2.2
+++ IntVector.java 2001/06/04 07:50:01 1.2.2.3
@@ -99,6 +99,20 @@
m_mapSize = blocksize;
m_map = new int[blocksize];
}
+
+ /**
+ * Construct a IntVector, using the given block size.
+ *
+ * @param blocksize Size of block to allocate
+ */
+ public IntVector(int blocksize, int increaseSize)
+ {
+
+ m_blocksize = increaseSize;
+ m_mapSize = blocksize;
+ m_map = new int[blocksize];
+ }
+
/**
* Get the length of the list.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org