@Immutable
public class VcfAllele
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VcfAllele.PrimaryType |
| Constructor and Description |
|---|
VcfAllele(java.lang.String string) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBase(char... bases) |
boolean |
equals(java.lang.Object o) |
boolean |
equalsIgnoreCase(VcfAllele allele) |
VcfAllele.PrimaryType |
getPrimaryType() |
int |
hashCode() |
boolean |
isAmbigious() |
boolean |
isBreakpoint() |
boolean |
isDeleted() |
boolean |
isSimple() |
boolean |
isSymbolic() |
int |
length()
Before calling, verify that this VcfAllele is not a breakpoint or a symbolic name.
|
java.lang.String |
toString() |
java.lang.String |
withLowercaseBases() |
public VcfAllele(@Nonnull
java.lang.String string)
string - A string following the VCF specification for the REF or ALT columns@Nonnull public java.lang.String toString()
toString in class java.lang.Objectpublic int length()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - If this Allele is a breakpoint or symbolic namepublic boolean isBreakpoint()
public boolean isSymbolic()
public boolean isAmbigious()
public boolean isDeleted()
public boolean isSimple()
public VcfAllele.PrimaryType getPrimaryType()
@Nonnull public java.lang.String withLowercaseBases()
public boolean equalsIgnoreCase(@Nullable
VcfAllele allele)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean containsBase(@Nonnull
char... bases)
bases,
restricted to bases (i.e. symbolic names like <IDxx> are excluded)