public final class DoubleHolder extends Object implements Streamable
一个double
是用来存储“出来”和“在IDL方法INOUT参数容器类。如果一个IDL IDL double
方法签名为“了”或“输入”参数,程序员必须通过一个实例DoubleHolder
在方法调用相应的参数;“输入”参数,程序员还必须填写“”值被发送到服务器。在方法调用返回,ORB将填写相应的“价值”从服务器返回的值。
如果myDoubleHolder
是DoubleHolder
实例,存储在其value
字段的值可以myDoubleHolder.value
。
Modifier and Type | Field and Description |
---|---|
double |
value
这
DoubleHolder 对象举行
double 价值。
|
Constructor and Description |
---|
DoubleHolder()
构建一个新的
value 字段初始化为0
DoubleHolder 对象。
|
DoubleHolder(double initial)
构建了一个新的
double
DoubleHolder 对象。
|
Modifier and Type | Method and Description |
---|---|
void |
_read(InputStream input)
从输入流中读取一个双值,并将其存储在值成员中。
|
TypeCode |
_type()
返回此对象的
TypeCode 持有人。
|
void |
_write(OutputStream output)
写存储在这个人的
OutputStream 双重价值。
|
public DoubleHolder()
value
字段初始化为0
DoubleHolder
对象。
public DoubleHolder(double initial)
double
DoubleHolder
对象。
initial
-这
double
初始化新对象的
value
领域
DoubleHolder
public void _read(InputStream input)
_read
接口
Streamable
input
-
InputStream
读。
public void _write(OutputStream output)
OutputStream
双重价值。
_write
接口
Streamable
output
-
OutputStream
写入。
public TypeCode _type()
TypeCode
持有人。
_type
接口
Streamable
TypeCode
对象。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.