public class Kmer extends java.lang.Object implements VPPoint, ByteSerializable
VPTree
.ByteSerializable.Deserialize
Modifier and Type | Field and Description |
---|---|
java.lang.String |
word |
Constructor and Description |
---|
Kmer(Kmer other) |
Kmer(SerializationInputStream in) |
Kmer(java.lang.String word) |
Kmer(VPPoint center) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VPPoint other) |
boolean |
equals(java.lang.Object o) |
double |
getDistanceTo(VPPoint other) |
int |
hashCode() |
void |
serialize(SerializationOutputStream out)
Serializes this object to binary form by passing it through a
serialization stream.
|
java.lang.String |
toString() |
boolean |
verifyMetricSpace() |
public Kmer(java.lang.String word)
public Kmer(Kmer other)
public Kmer(VPPoint center)
@ByteSerializable.Deserialize public Kmer(SerializationInputStream in) throws java.io.IOException
java.io.IOException
public double getDistanceTo(VPPoint other)
getDistanceTo
in interface VPPoint
public boolean verifyMetricSpace()
public int compareTo(VPPoint other)
compareTo
in interface java.lang.Comparable<VPPoint>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(SerializationOutputStream out) throws java.io.IOException
ByteSerializable
serialize
in interface ByteSerializable
out
- stream to serialize to.java.io.IOException