|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.type.types.container.Set<RNAStem> net.sourceforge.cilib.bioinf.rnaprediction.RNAConformation
public class RNAConformation
Constructor Summary | |
---|---|
RNAConformation()
Create an instance of a RNAConformation. |
Method Summary | |
---|---|
boolean |
contains(NucleotidePair pair)
Determine if the current RNAConformation contains the provided NucleotidePair. |
boolean |
equals(Object other)
Compare the specified object with this type for equality. |
char[] |
getCharRepresentation()
Get the character representation of the current RNAConformation. |
RNAConformation |
getClone()
Create a cloned copy of the current object and return it. |
int |
getNumOfPairs()
Get the number of pairs within this RNAConformation. |
int |
hashCode()
Returns the hash code value for this list. |
void |
isInvalid()
Determine if the current RNAConformation is valid. |
int |
length()
Get the length of the current RNAConformation. |
Methods inherited from class net.sourceforge.cilib.type.types.container.Set |
---|
accept, add, addAll, clear, contains, getDimension, getRepresentation, isEmpty, isInsideBounds, iterator, randomise, randomize, remove, remove, removeAll, reset, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RNAConformation()
Method Detail |
---|
public int length()
public char[] getCharRepresentation()
public RNAConformation getClone()
getClone
in interface StructuredType<RNAStem>
getClone
in interface Type
getClone
in interface Cloneable
getClone
in class Set<RNAStem>
Object.clone()
public boolean equals(Object other)
Set
true
if and only if the specified object is also an instance
of the same type.
equals
in interface Type
equals
in class Set<RNAStem>
other
- The object to compare.
true
if equality exists, false
otherwise.Object.equals(Object)
public int hashCode()
Set
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 Type
hashCode
in class Set<RNAStem>
Object.equals(Object)
,
Type.equals(Object)
public void isInvalid()
RuntimeException
- if an invalid confirmation is created.public boolean contains(NucleotidePair pair)
pair
- The NucleotidePair to test.
true
if the RNAConformation contains the
NucleotidePair, false
otherwise.public int getNumOfPairs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |