public final class Wildcard extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
basicSize()
Returns a number of basic letters that matches this wildcard.
|
long |
getBasicMask()
Returns basicMask representation of the wildcard.
|
byte |
getCode()
Returns alphabet code.
|
byte |
getMatchingCode(int i)
Returns i-th code that this wildcard matches.
|
char |
getSymbol()
Returns a wildcard letter.
|
byte |
getUniformlyDistributedBasicCode(long seed)
Returns uniformly distributed element (nucleotide or amino acid et cetera) corresponding to this wildcard.
|
boolean |
intersectsWith(Wildcard otherWildcard)
Returns true if set of symbols represented by this wildcard intersects with set of symbols
represented by
otherWildcard. |
boolean |
isBasic()
Returns true if and only if this wildcards has only one matching letter, so it represents definite
letter and formally it is not a wildcard.
|
boolean |
matches(byte code)
Returns whether this wildcard contains specified element (nucleotide or amino acid etc.).
|
int |
size()
Returns a number of letters (including wildcards) that matches this wildcard.
|
public char getSymbol()
public long getBasicMask()
public int basicSize()
public int size()
public boolean isBasic()
public byte getMatchingCode(int i)
i - index of letterpublic byte getCode()
public boolean matches(byte code)
code - binary code of elementpublic boolean intersectsWith(Wildcard otherWildcard)
otherWildcard.otherWildcard - other wildcardotherWildcardpublic byte getUniformlyDistributedBasicCode(long seed)
seed - seedCopyright © 2018. All rights reserved.