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 boolean
add(Interactor interactor)
addboolean
addAll(Collection<? extends Interactor> interactors)
void
clear()
clearboolean
contains(Object o)
boolean
containsAll(Collection<?> objects)
protected void
initialiseInteractorCandidatesSet()
initialiseInteractorCandidatesSetprotected void
initialiseInteractorCandidatesSetWith(Set<Interactor> interactorCandidates)
boolean
isEmpty()
isEmptyIterator<Interactor>
iterator()
iteratorboolean
remove(Object o)
boolean
removeAll(Collection<?> objects)
boolean
retainAll(Collection<?> objects)
void
setInteractorType(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)int
size()
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
- aString
object.
-
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:DefaultInteractor
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)- Specified by:
setInteractorType
in interfaceInteractor
- Overrides:
setInteractorType
in classDefaultInteractor
- Parameters:
type
- : molecule type
-
size
public int size()
size
- Specified by:
size
in interfaceCollection<Interactor>
- Returns:
- a int.
-
isEmpty
public boolean isEmpty()
isEmpty
- Specified by:
isEmpty
in interfaceCollection<Interactor>
- Returns:
- a boolean.
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<Interactor>
-
iterator
public Iterator<Interactor> iterator()
iterator
- Specified by:
iterator
in interfaceCollection<Interactor>
- Specified by:
iterator
in interfaceIterable<Interactor>
- Returns:
- a
Iterator
object.
-
toArray
public Object[] toArray()
toArray
- Specified by:
toArray
in interfaceCollection<Interactor>
- Returns:
- an array of
Object
objects.
-
toArray
public <T> T[] toArray(T[] ts)
toArray
- Specified by:
toArray
in 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:
add
in interfaceCollection<Interactor>
- Parameters:
interactor
- aInteractor
object.- Returns:
- a boolean.
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<Interactor>
-
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAll
in interfaceCollection<Interactor>
-
addAll
public boolean addAll(Collection<? extends Interactor> interactors)
- Specified by:
addAll
in interfaceCollection<Interactor>
-
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAll
in interfaceCollection<Interactor>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll
in interfaceCollection<Interactor>
-
clear
public void clear()
clear
- Specified by:
clear
in interfaceCollection<Interactor>
-
-