choco.kernel.common.util.comparator
Class ConstantPermutation

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

public class ConstantPermutation
extends AbstractSortingPermutation


Field Summary
protected  IntegerConstantVariable[] elements
           
 
Fields inherited from class choco.kernel.common.util.comparator.AbstractSortingPermutation
identity, IDENTITY, orderingPermutation, reversePermutation
 
Constructor Summary
ConstantPermutation(IntegerConstantVariable[] 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 IntegerConstantVariable[] elements
Constructor Detail

ConstantPermutation

public ConstantPermutation(IntegerConstantVariable[] elements,
                           boolean reverse)
Method Detail

compare

public int compare(Integer o1,
                   Integer o2)


Copyright © 2012. All Rights Reserved.