|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.thehackerschoice.shagg.WeightSet
This class holds a set of weights. Weights are a sequence of numbers, using the provided radix it is possible to also generate weights for non-digit serial numbers.
The set contains all sequences until the specified length, weights that only contain zeros are omitted.
e.g. radix 3, length 2:
Field Summary | |
private java.util.Vector |
set
|
Constructor Summary | |
WeightSet(int radix,
int len)
Construct a weight set. |
Method Summary | |
int[] |
get(int i)
Get the i-th element of the set. |
int |
size()
Get the size of the set. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector set
Constructor Detail |
public WeightSet(int radix, int len)
radix
- Radix of numberslen
- Maxmimum length of weight sequencesMethod Detail |
public int size()
public int[] get(int i)
i
- Index of the element
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |