Package net.sf.tweety.arg.aspic.order
Class SetComparator<T>
- java.lang.Object
-
- net.sf.tweety.arg.aspic.order.SetComparator<T>
-
- Type Parameters:
T- type of the compared sets' elements
- All Implemented Interfaces:
Comparator<Collection<T>>
public class SetComparator<T> extends Object implements Comparator<Collection<T>>
- Author:
- Nils Geilen A comparator for sets of T according to def.3.19 in Mogdil and Prakken
-
-
Constructor Summary
Constructors Constructor Description SetComparator(Comparator<T> comp, boolean elitist)Constructs an new set comparator
-
Method Summary
Modifier and Type Method Description intcompare(Collection<T> gamma1, Collection<T> gamma2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
SetComparator
public SetComparator(Comparator<T> comp, boolean elitist)
Constructs an new set comparator- Parameters:
comp- comparator for single elementselitist- elitist or democratic behvaiour
-
-
Method Detail
-
compare
public int compare(Collection<T> gamma1, Collection<T> gamma2)
- Specified by:
comparein interfaceComparator<T>
-
-