public class ContentValidatorProgressEvent extends ContentValidatorEvent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hashMatched |
protected ContentFragment |
sample |
protected int |
sampleNum |
protected int |
sampleTotal |
cbuff, source, valid| Constructor and Description |
|---|
ContentValidatorProgressEvent(ContentValidator src,
ContentBuffer cbuff,
ContentFragments valid,
ContentFragment sample,
int sampleNum,
int sampleTotal,
boolean hashMatched) |
| Modifier and Type | Method and Description |
|---|---|
ContentFragment |
getSample()
Указывает проверенный фрагмент
|
int |
getSampleNum()
Указывает номер проверенного фрагмента из общей выборки проверяемых фрагментов (от 1 до sampleTotal)
|
int |
getSampleTotal()
Указывает общее кол-во проверяемых фрагментов
|
boolean |
isHashMatched()
Возвращает совпала ли контрольная сумма или нет
|
protected void |
setHashMatched(boolean hashMatched)
Указывает совпала ли контрольная сумма или нет
|
protected void |
setSample(ContentFragment sample)
Указывает проверенный фрагмент
|
protected void |
setSampleNum(int sampleNum)
Указывает номер проверенного фрагмента из общей выборки проверяемых фрагментов (от 1 до sampleTotal)
|
protected void |
setSampleTotal(int sampleTotal)
Указывает общее кол-во проверяемых фрагментов
|
getContentBuffer, getSampleFragments, getSource, setContentBuffer, setSampleFragmentsprotected volatile boolean hashMatched
protected volatile int sampleNum
protected volatile int sampleTotal
protected volatile ContentFragment sample
public ContentValidatorProgressEvent(ContentValidator src, ContentBuffer cbuff, ContentFragments valid, ContentFragment sample, int sampleNum, int sampleTotal, boolean hashMatched)
public boolean isHashMatched()
protected void setHashMatched(boolean hashMatched)
hashMatched - true - контрольная сумма совпалаpublic int getSampleNum()
protected void setSampleNum(int sampleNum)
sampleNum - номер фрагментаpublic int getSampleTotal()
protected void setSampleTotal(int sampleTotal)
sampleTotal - кол-во проверяемых фрагментовpublic ContentFragment getSample()
protected void setSample(ContentFragment sample)
sample - фрагментCopyright © 2019. All rights reserved.