使用PortableRemoteObject .narrow方法将返回的远程对象压缩为ejb本地接口的类型。
Use the PortableRemoteObject.narrow method to narrow the returned remote object to the type of EJB home interface.
泛型make方法为一些类型V返回一个Box,返回值被用于需要Box的上下文中。
The generic make method returns a Box for some type v, and the return value is being used in a context that requires a Box.
另一种避免这样的麻烦的方式是永远为方法返回值声明类型,特别是为公用api定义方法的时候。
Another way to prevent these problems is to always declare return types for methods, especially when defining methods for a public API.
顾名思义,调用该方法可能返回一个存储段实例(表示为S3Bucket类型的实例)或在s3中创建代码段。
As the name implies, calling this method either returns an instance of the bucket (represented by an instance of the S3Bucket type) or creates the bucket in S3.
添加一个名为get的方法。在此方法中,使其返回类型为模板参数t(如图4所示),然后输入参数名字index,其类型为int。
Add a method called get with return type as the template parameter t from the method (as shown in Figure 4), and an input parameter named index whose type is int.
另一个问题是,wscompile为返回类型是void的方法的返回值生成JAX - RPC映射(在wsdl -return - value - mapping元素中描述)。
Another issue is that wscompile generates JAX-RPC mappings for the return value (that are described in the wsdl-return-value-mapping elements) for methods with a void return type.
当我创建了上述类我得到一个错误告诉我需要指定返回类型为每一个正常的方法。
When I create the above class I get an error that tells me I need to specify a return type as per a normal method.
如果嵌套类型为泛型,则此方法返回其泛型类型定义。
If a nested type is generic, this method returns its generic type definition.
如果该值的类型为引用类型,则此方法将返回指针的大小而非该对象的大小。
If the value's type is a reference type, this method returns the size of the pointer rather than the size of the object.
如果该值的类型为引用类型,则此方法将返回指针的大小而非该对象的大小。
If the value's type is a reference type, this method returns the size of the pointer rather than the size of the object.
应用推荐