本文整理汇总了Java中org.omg.CORBA.BooleanHolder类的典型用法代码示例。如果您正苦于以下问题:Java BooleanHolder类的具体用法?Java BooleanHolder怎么用?Java BooleanHolder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BooleanHolder类属于org.omg.CORBA包,在下文中一共展示了BooleanHolder类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: invoke
import org.omg.CORBA.BooleanHolder; //导入依赖的package包/类
/**
* The obsolete invocation using server request. Implemented for
* compatibility reasons, but is it more effectinve to use
* {@link #_invoke}.
*
* @param request a server request.
*/
public void invoke(ServerRequest request)
{
// "destroy" has a void return type, the two other methods - boolean.
Streamable result =
request.operation().equals("destroy") ? null : new BooleanHolder();
gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result);
}
开发者ID:vilie,项目名称:javify,代码行数:15,代码来源:_BindingIteratorImplBase.java
示例2: get_boolean
import org.omg.CORBA.BooleanHolder; //导入依赖的package包/类
/** {@inheritDoc} */
public boolean get_boolean() throws TypeMismatch
{
try
{
return ((BooleanHolder) holder).value;
}
catch (ClassCastException cex)
{
TypeMismatch m = new TypeMismatch();
m.initCause(cex);
throw m;
}
}
开发者ID:vilie,项目名称:javify,代码行数:15,代码来源:gnuDynAny.java
示例3: insert_boolean
import org.omg.CORBA.BooleanHolder; //导入依赖的package包/类
/** {@inheritDoc} */
public void insert_boolean(boolean a_x) throws InvalidValue, TypeMismatch
{
try
{
((BooleanHolder) holder).value = a_x;
valueChanged();
}
catch (ClassCastException cex)
{
TypeMismatch t = new TypeMismatch();
t.initCause(cex);
throw t;
}
}
开发者ID:vilie,项目名称:javify,代码行数:16,代码来源:gnuDynAny.java
示例4: extract_boolean
import org.omg.CORBA.BooleanHolder; //导入依赖的package包/类
/** {@inheritDoc} */
public boolean extract_boolean()
throws BAD_OPERATION
{
check(TCKind._tk_boolean);
return ((BooleanHolder) has).value;
}
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:gnuAny.java
示例5: animate
import org.omg.CORBA.BooleanHolder; //导入依赖的package包/类
private int animate(int value, int target, double animFactor, BooleanHolder animNeeded) {
int newValue = animate(value, target, animFactor);
if (newValue != value) {
animNeeded.value = true;
}
return newValue;
}
开发者ID:DJVUpp,项目名称:Desktop,代码行数:8,代码来源:JhromeTabbedPaneUI.java
示例6: animateShrinkingOnly
import org.omg.CORBA.BooleanHolder; //导入依赖的package包/类
private int animateShrinkingOnly(int value, int target, double animFactor, BooleanHolder animNeeded) {
int newValue = value < target ? target : animate(value, target, animFactor);
if (newValue != value) {
animNeeded.value = true;
}
return newValue;
}
开发者ID:DJVUpp,项目名称:Desktop,代码行数:8,代码来源:JhromeTabbedPaneUI.java
注:本文中的org.omg.CORBA.BooleanHolder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论