public class Test
extends java.lang.Object
Sequence
Constructor and Description |
---|
Test()
Constructs an empty test.
|
Test(java.util.List<Sequence> sequences)
Constructs a test containing the specified list of sequences.
|
Modifier and Type | Method and Description |
---|---|
void |
addSequence(Sequence sequence)
Adds the specified sequence to this test.
|
boolean |
equals(java.lang.Object object)
Compares the specified object with this test for equality.
|
int |
getSequenceNum()
Returns the number of sequences which this test consists of.
|
java.util.List<Sequence> |
getSequences()
Returns a list of sequences which this test consists of.
|
int |
getVectorNum()
Returns the number of vectors which this test consists of.
|
int |
hashCode() |
boolean |
isEmpty()
Checks whether the object contains empty sequences only.
|
java.lang.String |
toString() |
public Test()
public Test(java.util.List<Sequence> sequences)
sequences
- the list of sequencespublic void addSequence(Sequence sequence)
sequence
- the sequence to be added.public java.util.List<Sequence> getSequences()
public int getSequenceNum()
public int getVectorNum()
public boolean isEmpty()
true
if the object contains empty sequences only, false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
Test
class or its subclass;
equals
in class java.lang.Object
object
- the object to be compared for equality with this testtrue
if the specified object is equal to this test. Otherwise returns
false
public java.lang.String toString()
toString
in class java.lang.Object