
public class PatternBitmap extends Object
| Modifier and Type | Method and Description |
|---|---|
static int[] |
map(CharSequence s,
CharIndex idx,
int[] result)
Computes a pattern bitmap for a short character sequence.
|
static int[][] |
map(CharSequence s,
CharIndex idx,
int[][] result,
int width)
Computes a pattern bitmap for a character sequence of any length.
|
static long[] |
map(CharSequence s,
CharIndex idx,
long[] result)
Computes a pattern bitmap for a medium character sequence.
|
public static int[] map(CharSequence s, CharIndex idx, int[] result)
s - the character sequence defining the bits to be setidx - the alphabet for which bitmaps should be producedresult - an array (of size idx.size() or greater) to
hold the resulting bitmapspublic static int[][] map(CharSequence s, CharIndex idx, int[][] result, int width)
s - the character sequence defining the bits to be setidx - the alphabet for which bitmaps should be producedresult - an array (of size idx.size() or greater) to
hold the resulting bitmapswidth - how many bits to be use in each word, no more
than Integer.SIZEpublic static long[] map(CharSequence s, CharIndex idx, long[] result)
s - the character sequence defining the bits to be setidx - the alphabet for which bitmaps should be producedresult - an array (of size idx.size() or greater) to
hold the resulting bitmapsCopyright © 2018. All rights reserved.