Metered

遗产: java.lang.Object

public class Metered

提供设置计量密钥的方法。


在此示例中,将尝试设置计量公钥和私钥

The component jar file:
  
 	Metered matered = new Metered();
 	matered.setMeteredKey("PublicKey", "PrivateKey");

构造函数

构造函数描述
Metered()初始化此类的新实例。

方法

方法描述
equals(Object arg0)
getClass()
getConsumptionCredit()获得消费信用
getConsumptionQuantity()获取消费文件大小
hashCode()
notify()
notifyAll()
setMeteredKey(String publicKey, String privateKey)设置计量公钥和私钥
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Metered()

public Metered()

初始化此类的新实例。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getConsumptionCredit()

public static double getConsumptionCredit()

获得消费信用

退货: 双倍消费数量

getConsumptionQuantity()

public static double getConsumptionQuantity()

获取消费文件大小

退货: 双倍消费数量

hashCode()

public native int hashCode()

退货: 整数

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setMeteredKey(String publicKey, String privateKey)

public void setMeteredKey(String publicKey, String privateKey)

设置计量公钥和私钥

参数:

范围类型描述
publicKeyjava.lang.String公钥
privateKeyjava.lang.String私钥

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int