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 booleanareEquals(VariableParameterValueSet set1, VariableParameterValueSet set2)Use VariableParameterValueComparator to know if two variableParameterValueSet are equals.intcompare(VariableParameterValueSet variableParameterValues1, VariableParameterValueSet variableParameterValues2)compareVariableParameterValueCollectionComparatorgetVariableParameterValueCollectionComparator()Getter for the fieldvariableParameterValueCollectionComparator.static inthashCode(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
VariableParameterValueCollectionComparatorobject.
-
areEquals
public static boolean areEquals(VariableParameterValueSet set1, VariableParameterValueSet set2)
Use VariableParameterValueComparator to know if two variableParameterValueSet are equals.- Parameters:
set1- aVariableParameterValueSetobject.set2- aVariableParameterValueSetobject.- Returns:
- true if the two variableParameterValueSet are equal
-
hashCode
public static int hashCode(VariableParameterValueSet set)
hashCode
- Parameters:
set- aVariableParameterValueSetobject.- Returns:
- the hashcode consistent with the equals method for this comparator
-
compare
public int compare(VariableParameterValueSet variableParameterValues1, VariableParameterValueSet variableParameterValues2)
compare
- Specified by:
comparein interfaceComparator<VariableParameterValueSet>- Parameters:
variableParameterValues1- aVariableParameterValueSetobject.variableParameterValues2- aVariableParameterValueSetobject.- Returns:
- a int.
-
-