javatools.util
Class ArrayUtils

java.lang.Object
  extended by javatools.util.ArrayUtils

public class ArrayUtils
extends java.lang.Object

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga) Some utility methods for arrays


Constructor Summary
ArrayUtils()
           
 
Method Summary
static int intersectArrays(int[] a, int[] b)
          Returns the size of the intersection of two SORTED arrays.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayUtils

public ArrayUtils()
Method Detail

intersectArrays

public static int intersectArrays(int[] a,
                                  int[] b)
Returns the size of the intersection of two SORTED arrays. The arrays NEED TO BE PASSED SORTED.

Parameters:
a - First array
b - Second array
Returns:
Size of intersection of a and b