|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.bioinf.rnaprediction.RNAStem
public class RNAStem
Constructor Summary | |
---|---|
RNAStem()
|
|
RNAStem(ArrayList<NucleotidePair> basePairs)
|
Method Summary | ||
---|---|---|
boolean |
add(NucleotidePair o)
|
|
boolean |
addAll(Collection<? extends NucleotidePair> c)
|
|
void |
clear()
|
|
int |
compareTo(RNAStem o)
|
|
boolean |
conflictsWith(RNAStem otherstem)
Uses the StemConflictTable Singleton class to look up conflicts quicker. |
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
boolean |
equals(Object other)
Compare the specified object with this type for equality. |
|
RNAStem |
getClone()
Create a cloned copy of the current object and return it. |
|
ArrayList<RNAStem> |
getConflictingStems()
|
|
int |
getId()
|
|
int |
getIndex()
|
|
int |
getLength()
|
|
int |
hashCode()
Returns the hash code value for this list. |
|
boolean |
isEmpty()
|
|
Iterator<NucleotidePair> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
void |
setConflictingStems(ArrayList<RNAStem> conflicts)
|
|
void |
setIndex(int index)
|
|
int |
size()
|
|
boolean |
slowConflictsWith(RNAStem otherstem)
returns true if the stems fail all of four tests. |
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RNAStem()
public RNAStem(ArrayList<NucleotidePair> basePairs)
Method Detail |
---|
public int getId()
public int getIndex()
public void setIndex(int index)
index
- The index to set.public boolean equals(Object other)
Type
true
if and only if the specified object is also an instance
of the same type.
equals
in interface Collection<NucleotidePair>
equals
in interface Type
equals
in class Object
other
- The object to compare.
true
if equality exists, false
otherwise.Object.equals(Object)
public int hashCode()
Type
int hashCode = 7; Iterator<E> i = list.iterator(); while (i.hasNext()) { E obj = i.next(); hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode()); }This ensures that type1.equals(type2) implies that type1.hashCode()==type2.hashCode() for any two types, type1 and type2, as required by the general contract of
Object.hashCode()
.
hashCode
in interface Collection<NucleotidePair>
hashCode
in interface Type
hashCode
in class Object
Object.equals(Object)
,
Type.equals(Object)
public int getLength()
public int size()
size
in interface Collection<NucleotidePair>
public boolean isEmpty()
isEmpty
in interface Collection<NucleotidePair>
public boolean contains(Object o)
contains
in interface Collection<NucleotidePair>
public Object[] toArray()
toArray
in interface Collection<NucleotidePair>
public boolean remove(Object o)
remove
in interface Collection<NucleotidePair>
public void clear()
clear
in interface Collection<NucleotidePair>
public boolean conflictsWith(RNAStem otherstem)
otherstem
-
public boolean slowConflictsWith(RNAStem otherstem)
stem
-
public boolean add(NucleotidePair o)
add
in interface Collection<NucleotidePair>
public int compareTo(RNAStem o)
compareTo
in interface Comparable<RNAStem>
public boolean addAll(Collection<? extends NucleotidePair> c)
addAll
in interface Collection<NucleotidePair>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<NucleotidePair>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<NucleotidePair>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<NucleotidePair>
public Iterator<NucleotidePair> iterator()
iterator
in interface Iterable<NucleotidePair>
iterator
in interface Collection<NucleotidePair>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<NucleotidePair>
public void setConflictingStems(ArrayList<RNAStem> conflicts)
public ArrayList<RNAStem> getConflictingStems()
public RNAStem getClone()
Type
getClone
in interface Type
getClone
in interface Cloneable
Object.clone()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |