com.jd.blockchain.transaction.GenericValueHolder Maven / Gradle / Ivy
package com.jd.blockchain.transaction;
public class GenericValueHolder extends ValueHolderWrapper {
GenericValueHolder(OperationResultHolder resultHolder) {
super(resultHolder);
}
/**
* 获取值;
*
* 此方法不堵塞,调用立即返回;
*
* 如果未完成时( {@link #isCompleted()} 为 false ),总是返回 null;
*
* @return
*/
@SuppressWarnings("unchecked")
public T get() {
return (T) super.getValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy