Browse Source

Added copyarray method.

Added javadoc comment on class.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197117 13f79535-47bb-0310-9956-ffa450edef68
tags/Alt-Design_pre_awt_renderer_import
Peter Bernard West 20 years ago
parent
commit
5133d830a1
1 changed files with 15 additions and 4 deletions
  1. 15
    4
      src/java/org/apache/fop/datastructs/ROIntArray.java

+ 15
- 4
src/java/org/apache/fop/datastructs/ROIntArray.java View File

@@ -1,7 +1,4 @@
/**
* Provides a Read-Only <tt>int</tt> array.
*
*
/*
* ============================================================================
* The Apache Software License, Version 1.1
* ============================================================================
@@ -56,6 +53,11 @@
// $Id$
package org.apache.fop.datastructs;

/**
* Provides a Read-Only <tt>int</tt> array.
*
* @author pbw
*/
public class ROIntArray {
private int[] iarray;
@@ -104,4 +106,13 @@ public class ROIntArray {
public int get(int index) {
return iarray[index];
}
/**
* @return a copy of the array
*/
public int[] copyarray() {
int[] tmp = null;
System.arraycopy(iarray, 0, tmp, 0, iarray.length);
return tmp;
}
}

Loading…
Cancel
Save