Package org.molgenis.vibe.core.formats
Class PhenotypeNetworkCollection
- java.lang.Object
-
- org.molgenis.vibe.core.formats.PhenotypeNetworkCollection
-
public class PhenotypeNetworkCollection extends Object
A collection ofPhenotypeNetworks.
-
-
Constructor Summary
Constructors Constructor Description PhenotypeNetworkCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PhenotypeNetwork network)Adds aPhenotypeNetworkto thePhenotypeNetworkCollectionvoidclear()Clears thePhenotypeNetworkCollectionbooleanequals(Object o)PhenotypeNetworkgetPhenotypeNetworkBySource(Phenotype source)Retrieve aPhenotypeNetworkbased on itsPhenotypeNetwork.getSource().Set<Phenotype>getPhenotypes()inthashCode()PhenotypeNetworkremove(Phenotype phenotypeSource)Removes aPhenotypeNetworkfrom thePhenotypeNetworkCollection.booleanremove(PhenotypeNetwork network)Removes aPhenotypeNetworkfrom thePhenotypeNetworkCollection.StringtoString()
-
-
-
Method Detail
-
getPhenotypeNetworkBySource
public PhenotypeNetwork getPhenotypeNetworkBySource(Phenotype source)
Retrieve aPhenotypeNetworkbased on itsPhenotypeNetwork.getSource().- Parameters:
source- thesourcebelonging to aPhenotypeNetwork- Returns:
- the
PhenotypeNetworkbelonging to thesource, ornullif there is noPhenotypeNetworkavailable with thatsource
-
add
public void add(PhenotypeNetwork network)
Adds aPhenotypeNetworkto thePhenotypeNetworkCollection- Parameters:
network- thePhenotypeNetworkto be added
-
remove
public boolean remove(PhenotypeNetwork network)
Removes aPhenotypeNetworkfrom thePhenotypeNetworkCollection.- Parameters:
network- thePhenotypeNetworkto be removed- Returns:
trueif it was removed, otherwisefalse
-
remove
public PhenotypeNetwork remove(Phenotype phenotypeSource)
Removes aPhenotypeNetworkfrom thePhenotypeNetworkCollection.- Parameters:
phenotypeSource- thePhenotypeNetwork.getSource()from thePhenotypeNetworkto be removed- Returns:
- the
PhenotypeNetworkif it was removed, otherwisenull
-
clear
public void clear()
Clears thePhenotypeNetworkCollection
-
-