Class VariableParameterValueSetComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.experiment.VariableParameterValueSetComparator
-
- All Implemented Interfaces:
Comparator<VariableParameterValueSet>
public class VariableParameterValueSetComparator extends Object implements Comparator<VariableParameterValueSet>
Simple comparator for VariableParameterValueSet It will use VariableParameterValueComparator to compare each variableParameterValue independently from the order.- Since:
22/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description VariableParameterValueSetComparator()
Creates a new variableParameterValue CollectionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(VariableParameterValueSet set1, VariableParameterValueSet set2)
Use VariableParameterValueComparator to know if two variableParameterValueSet are equals.int
compare(VariableParameterValueSet variableParameterValues1, VariableParameterValueSet variableParameterValues2)
compareVariableParameterValueCollectionComparator
getVariableParameterValueCollectionComparator()
Getter for the fieldvariableParameterValueCollectionComparator
.static int
hashCode(VariableParameterValueSet set)
hashCode-
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
-
-
-
-
Method Detail
-
getVariableParameterValueCollectionComparator
public VariableParameterValueCollectionComparator getVariableParameterValueCollectionComparator()
Getter for the field
variableParameterValueCollectionComparator
.- Returns:
- a
VariableParameterValueCollectionComparator
object.
-
areEquals
public static boolean areEquals(VariableParameterValueSet set1, VariableParameterValueSet set2)
Use VariableParameterValueComparator to know if two variableParameterValueSet are equals.- Parameters:
set1
- aVariableParameterValueSet
object.set2
- aVariableParameterValueSet
object.- Returns:
- true if the two variableParameterValueSet are equal
-
hashCode
public static int hashCode(VariableParameterValueSet set)
hashCode
- Parameters:
set
- aVariableParameterValueSet
object.- Returns:
- the hashcode consistent with the equals method for this comparator
-
compare
public int compare(VariableParameterValueSet variableParameterValues1, VariableParameterValueSet variableParameterValues2)
compare
- Specified by:
compare
in interfaceComparator<VariableParameterValueSet>
- Parameters:
variableParameterValues1
- aVariableParameterValueSet
object.variableParameterValues2
- aVariableParameterValueSet
object.- Returns:
- a int.
-
-