public final class MutationGroup extends java.lang.Object implements java.io.Serializable, java.lang.Iterable<Mutation>
One of the mutations is chosen to be "primary", and can be used to determine partitions.
Modifier and Type | Method and Description |
---|---|
java.util.List<Mutation> |
attached() |
static MutationGroup |
create(Mutation primary,
java.lang.Iterable<Mutation> other) |
static MutationGroup |
create(Mutation primary,
Mutation... other)
Creates a new group.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.Iterator<Mutation> |
iterator() |
Mutation |
primary() |
java.lang.String |
toString() |
public static MutationGroup create(Mutation primary, Mutation... other)
primary
- a primary mutation.other
- other mutations, usually interleaved in parent.public static MutationGroup create(Mutation primary, java.lang.Iterable<Mutation> other)
public java.util.Iterator<Mutation> iterator()
iterator
in interface java.lang.Iterable<Mutation>
public Mutation primary()
public java.util.List<Mutation> attached()
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