choco.kernel.common.util.comparator
Class IntPermutation

java.lang.Object
  extended by choco.kernel.common.util.comparator.AbstractSortingPermutation
      extended by choco.kernel.common.util.comparator.IntPermutation
All Implemented Interfaces:
IPermutation, Comparator<Integer>

public class IntPermutation
extends AbstractSortingPermutation


Field Summary
protected  int[] elements
           
 
Fields inherited from class choco.kernel.common.util.comparator.AbstractSortingPermutation
identity, IDENTITY, orderingPermutation, reversePermutation
 
Constructor Summary
IntPermutation(int[] elements, boolean reverse)
           
 
Method Summary
 int compare(Integer o1, Integer o2)
           
 
Methods inherited from class choco.kernel.common.util.comparator.AbstractSortingPermutation
applyPermutation, applyPermutation, applyPermutation, getOriginalIndex, getPermutationIndex, isIdentity, sort, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

elements

protected final int[] elements
Constructor Detail

IntPermutation

public IntPermutation(int[] elements,
                      boolean reverse)
Method Detail

compare

public int compare(Integer o1,
                   Integer o2)


Copyright © 2012. All Rights Reserved.