public class EnzymaticReactions extends Object implements Collection<EnzymaticReactions.VisibleReaction>
Modifier and Type | Class and Description |
---|---|
class |
EnzymaticReactions.VisibleReaction
Utility class to wrap a Reaction with the views where it is available
and the IUBMB flag.
|
Constructor and Description |
---|
EnzymaticReactions() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(EnzymaticReactions.VisibleReaction arg0) |
boolean |
add(EnzymaticReactions er)
Adds several reactions to the list in one go.
|
boolean |
add(uk.ac.ebi.rhea.domain.Reaction reaction,
String view,
boolean iubmb)
Adds a reaction to the list.
|
boolean |
addAll(Collection<? extends EnzymaticReactions.VisibleReaction> arg0) |
void |
clear() |
boolean |
contains(Object arg0) |
boolean |
containsAll(Collection<?> arg0) |
boolean |
equals(Object obj) |
EnzymaticReactions |
forView(View theView)
Filters this collection of reactions for a given view.
|
uk.ac.ebi.rhea.domain.Reaction |
getReaction(int i) |
boolean |
getReactionIubmbFlag(int i)
Has a reaction the IUBMB flag set?
|
List<uk.ac.ebi.rhea.domain.Reaction> |
getReactions(View theView) |
EnzymeViewConstant |
getReactionView(int i) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<EnzymaticReactions.VisibleReaction> |
iterator() |
boolean |
remove(Object arg0) |
boolean |
removeAll(Collection<?> arg0) |
void |
removeReaction(uk.ac.ebi.rhea.domain.Reaction reaction)
Removes a reaction from the list, no matter its view.
|
boolean |
retainAll(Collection<?> arg0) |
void |
setReactions(LinkedHashSet<EnzymaticReactions.VisibleReaction> reactions) |
int |
size() |
Object[] |
toArray() |
<VisibleReaction> |
toArray(VisibleReaction[] arg0) |
public int size()
size
in interface Collection<EnzymaticReactions.VisibleReaction>
public uk.ac.ebi.rhea.domain.Reaction getReaction(int i)
public List<uk.ac.ebi.rhea.domain.Reaction> getReactions(View theView)
view
- public EnzymaticReactions forView(View theView)
view
- the view used as filter.public EnzymeViewConstant getReactionView(int i)
public boolean getReactionIubmbFlag(int i)
i
- the index of the reaction.public boolean add(uk.ac.ebi.rhea.domain.Reaction reaction, String view, boolean iubmb)
reaction
- view
- iubmb
- true
if the set of reactions is changed.public boolean add(EnzymaticReactions er)
er
- true
if the set of reactions is changed.public void removeReaction(uk.ac.ebi.rhea.domain.Reaction reaction)
reaction
- public void setReactions(LinkedHashSet<EnzymaticReactions.VisibleReaction> reactions)
public boolean equals(Object obj)
equals
in interface Collection<EnzymaticReactions.VisibleReaction>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<EnzymaticReactions.VisibleReaction>
hashCode
in class Object
public Iterator<EnzymaticReactions.VisibleReaction> iterator()
iterator
in interface Iterable<EnzymaticReactions.VisibleReaction>
iterator
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean add(EnzymaticReactions.VisibleReaction arg0)
add
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean addAll(Collection<? extends EnzymaticReactions.VisibleReaction> arg0)
addAll
in interface Collection<EnzymaticReactions.VisibleReaction>
public void clear()
clear
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean contains(Object arg0)
contains
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean containsAll(Collection<?> arg0)
containsAll
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean isEmpty()
isEmpty
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean remove(Object arg0)
remove
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean removeAll(Collection<?> arg0)
removeAll
in interface Collection<EnzymaticReactions.VisibleReaction>
public boolean retainAll(Collection<?> arg0)
retainAll
in interface Collection<EnzymaticReactions.VisibleReaction>
public Object[] toArray()
toArray
in interface Collection<EnzymaticReactions.VisibleReaction>
public <VisibleReaction> VisibleReaction[] toArray(VisibleReaction[] arg0)
toArray
in interface Collection<EnzymaticReactions.VisibleReaction>
Copyright © 2014 EMBL-EBI. All rights reserved.