Package de.rwth.swc.coffee4j.engine.util
Class TupleUtil
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.util.TupleUtil
-
public final class TupleUtil extends java.lang.ObjectUtilities for tuples that are represented by two separate integer arrays. One array represents the parameters and the other array represents the parameter values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleantuplesAreEqual(int[] parameters, int[] values, int[] otherParameters, int[] otherValues)Checks if two tuples are equal.
-
-
-
Method Detail
-
tuplesAreEqual
public static boolean tuplesAreEqual(int[] parameters, int[] values, int[] otherParameters, int[] otherValues)Checks if two tuples are equal. For example, parameters=[0, 1], values=[0,1]and otherParameters=[1,0], otherValues=[1,0]are equal because the value for parameter no. 0 is 0 in both tuples and the value for parameter no. 1 is 1 in both tuples.- Parameters:
parameters- Parameters of the first tuplevalues- Values of the first tupleotherParameters- Parameters of the second tupleotherValues- Values of the second tuple- Returns:
trueif the tuples are equal. Otherwise,false.
-
-