Package psidev.psi.mi.jami.utils
Class ConfidenceUtils
- java.lang.Object
-
- psidev.psi.mi.jami.utils.ConfidenceUtils
-
public class ConfidenceUtils extends Object
Utility class for confidences- Since:
25/03/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ConfidenceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<Confidence>
collectAllConfidencesHavingType(Collection<? extends Confidence> confs, String typeId, String typeName)
Collect all confidences having a specific typestatic Confidence
createAuthorBasedConfidence(String value)
createAuthorBasedConfidencestatic Confidence
createConfidence(String typeName, String value)
createConfidencestatic Confidence
createConfidence(String typeName, String typeMi, String value)
createConfidencestatic boolean
doesConfidenceHaveType(Confidence conf, String typeId, String typeName)
Check the type of a confidence
-
-
-
Method Detail
-
doesConfidenceHaveType
public static boolean doesConfidenceHaveType(Confidence conf, String typeId, String typeName)
Check the type of a confidence- Parameters:
conf
- aConfidence
object.typeId
- aString
object.typeName
- aString
object.- Returns:
- a boolean.
-
collectAllConfidencesHavingType
public static Collection<Confidence> collectAllConfidencesHavingType(Collection<? extends Confidence> confs, String typeId, String typeName)
Collect all confidences having a specific type- Parameters:
confs
- aCollection
object.typeId
- aString
object.typeName
- aString
object.- Returns:
- a
Collection
object.
-
createConfidence
public static Confidence createConfidence(String typeName, String typeMi, String value)
createConfidence
- Parameters:
typeName
- aString
object.typeMi
- aString
object.value
- aString
object.- Returns:
- a
Confidence
object.
-
createConfidence
public static Confidence createConfidence(String typeName, String value)
createConfidence
- Parameters:
typeName
- aString
object.value
- aString
object.- Returns:
- a
Confidence
object.
-
createAuthorBasedConfidence
public static Confidence createAuthorBasedConfidence(String value)
createAuthorBasedConfidence
- Parameters:
value
- aString
object.- Returns:
- a
Confidence
object.
-
-