Class DefaultInteractorPool
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultInteractor
-
- psidev.psi.mi.jami.model.impl.DefaultInteractorPool
-
- All Implemented Interfaces:
Iterable<Interactor>,Collection<Interactor>,Interactor,InteractorPool
- Direct Known Subclasses:
MitabInteractorPool
public class DefaultInteractorPool extends DefaultInteractor implements InteractorPool
Default implementation for interactor poolNotes: The equals and hashcode methods have NOT been overridden because the InteractorPool object is a complex object. To compare InteractorPool objects, you can use some comparators provided by default: - DefaultInteractorPoolComparator - UnambiguousInteractorPoolComparator - DefaultExactInteractorPoolComparator - UnambiguousExactInteractorPoolComparator
- Since:
04/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.InteractorPool
CANDIDATE_SET, CANDIDATE_SET_MI, DEFINED_SET, DEFINED_SET_MI, MOLECULE_SET, MOLECULE_SET_MI, OPEN_SET, OPEN_SET_MI
-
-
Constructor Summary
Constructors Constructor Description DefaultInteractorPool(String name)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, CvTerm type)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, CvTerm type, Organism organism)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, CvTerm type, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, Organism organism)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, Organism organism, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, String fullName, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, CvTerm type)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, CvTerm type, Organism organism)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, CvTerm type, Organism organism, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, CvTerm type, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, Organism organism)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, Organism organism, Xref uniqueId)Constructor for DefaultInteractorPool.DefaultInteractorPool(String name, Xref uniqueId)Constructor for DefaultInteractorPool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Interactor interactor)addbooleanaddAll(Collection<? extends Interactor> interactors)voidclear()clearbooleancontains(Object o)booleancontainsAll(Collection<?> objects)protected voidinitialiseInteractorCandidatesSet()initialiseInteractorCandidatesSetprotected voidinitialiseInteractorCandidatesSetWith(Set<Interactor> interactorCandidates)booleanisEmpty()isEmptyIterator<Interactor>iterator()iteratorbooleanremove(Object o)booleanremoveAll(Collection<?> objects)booleanretainAll(Collection<?> objects)voidsetInteractorType(CvTerm type)Sets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)intsize()sizeObject[]toArray()toArray<T> T[]toArray(T[] ts)toArray-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultInteractor
getAliases, getAnnotations, getChecksums, getFullName, getIdentifiers, getInteractorType, getOrganism, getPreferredIdentifier, getPreferredName, getShortName, getXrefs, initialiseAliases, initialiseAliasesWith, initialiseAnnotations, initialiseAnnotationsWith, initialiseChecksums, initialiseChecksumsWith, initialiseIdentifiers, initialiseIdentifiersWith, initialiseXrefs, initialiseXrefsWith, setFullName, setOrganism, setShortName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Methods inherited from interface psidev.psi.mi.jami.model.Interactor
getAliases, getAnnotations, getChecksums, getFullName, getIdentifiers, getInteractorType, getOrganism, getPreferredIdentifier, getPreferredName, getShortName, getXrefs, setFullName, setOrganism, setShortName
-
-
-
-
Constructor Detail
-
DefaultInteractorPool
public DefaultInteractorPool(String name, CvTerm type)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName, CvTerm type)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, CvTerm type, Organism organism)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName, CvTerm type, Organism organism)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, CvTerm type, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName, CvTerm type, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, CvTerm type, Organism organism, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name)
Constructor for DefaultInteractorPool.
- Parameters:
name- aStringobject.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, Organism organism)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName, Organism organism)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, String fullName, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
DefaultInteractorPool
public DefaultInteractorPool(String name, Organism organism, Xref uniqueId)
Constructor for DefaultInteractorPool.
-
-
Method Detail
-
initialiseInteractorCandidatesSet
protected void initialiseInteractorCandidatesSet()
initialiseInteractorCandidatesSet
-
initialiseInteractorCandidatesSetWith
protected void initialiseInteractorCandidatesSetWith(Set<Interactor> interactorCandidates)
initialiseInteractorCandidatesSet
-
setInteractorType
public void setInteractorType(CvTerm type)
Description copied from class:DefaultInteractorSets the molecule type for this interactor If the given type is null, this method automatically sets the interactor type to 'unknown participant' (MI:0329)- Specified by:
setInteractorTypein interfaceInteractor- Overrides:
setInteractorTypein classDefaultInteractor- Parameters:
type- : molecule type
-
size
public int size()
size
- Specified by:
sizein interfaceCollection<Interactor>- Returns:
- a int.
-
isEmpty
public boolean isEmpty()
isEmpty
- Specified by:
isEmptyin interfaceCollection<Interactor>- Returns:
- a boolean.
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<Interactor>
-
iterator
public Iterator<Interactor> iterator()
iterator
- Specified by:
iteratorin interfaceCollection<Interactor>- Specified by:
iteratorin interfaceIterable<Interactor>- Returns:
- a
Iteratorobject.
-
toArray
public Object[] toArray()
toArray
- Specified by:
toArrayin interfaceCollection<Interactor>- Returns:
- an array of
Objectobjects.
-
toArray
public <T> T[] toArray(T[] ts)
toArray
- Specified by:
toArrayin interfaceCollection<Interactor>- Type Parameters:
T- a T object.- Parameters:
ts- an array of T objects.- Returns:
- an array of T objects.
-
add
public boolean add(Interactor interactor)
add
- Specified by:
addin interfaceCollection<Interactor>- Parameters:
interactor- aInteractorobject.- Returns:
- a boolean.
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<Interactor>
-
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAllin interfaceCollection<Interactor>
-
addAll
public boolean addAll(Collection<? extends Interactor> interactors)
- Specified by:
addAllin interfaceCollection<Interactor>
-
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAllin interfaceCollection<Interactor>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAllin interfaceCollection<Interactor>
-
clear
public void clear()
clear
- Specified by:
clearin interfaceCollection<Interactor>
-
-