Similar considerations apply if we change the type of the first parameter from String to int.
如果将第一个参数的类型从String变成 int ,那么也得考虑相同的问题。
Assign is only available for assigning a value to simple type fields, such as string and int. To create an assign mapping.
Assign只能用于为简单类型字段指定值,比如字符串和整数。
In this case, you can use a Convert to ensure that the string age, which is expected, but not required to be an int, is actually an int in the target.
对于这种情况,您可以使用Convert来确保字符串格式的年龄(预期的值,但不一定要为整数值)在目标中为一个整数值。
Use the int variable iter to indicate the different "article" elements in the XML document, and the String variable elemtext to specify the element tag name.
使用int变量iter来表示XML文档中不同的“article ”元素,同时使用String变量elemtext来制定元素标签名称。
It's much more difficult, say, to start with an XSD: int filler field and decide later that it should have been a string.
如果这样做就很困难:以xsd:int填充字段开始,以后才决定他应该是字符串。
Import XSD primitive data types to the model (these primitive data types can be used to use primitive types, such as string, int, and float in the schema).
向模型导入XSDprimitiveDataTypes(您可以使用原始数据类型来利用原始类型,例如模式之中的字符串,整数以及浮动数)。
In cases where the string cannot be converted to an integer, a user-specified default int is placed in the target field.
对于不能将字符串转换为整数的情况,将在目标字段中使用一个用户指定的默认整数。
Several overloaded versions of these accessors are provided, allowing the properties to be accessed by passing the property name (String), number (int), or property meta object itself.
这些访问器方法有不同的重载版本,可以通过传递属性名(String)、编号(int)或者属性元对象本身来访问属性。
Also suppose that the Collaborator object requires a string and a primitive int as parameters passed to the constructor.
同时假定Collaborator对象要求使用字符串和原始的int作为传递给构造函数的参数。
Both blocks of code evaluate an int value using a switch statement that results in a human-readable string value printed to the console.
这两个代码块都会使用switch语句计算int值,从而得到输出到控制台的供人阅读的字符串值。
To specify an int variable for an iterator and a String variable for element name, use the code in Listing 17.
要为迭代器指定一个int变量并为元素名称指定一个String变量,请使用清单17中的代码。
For example, if you have a box designed to hold values of type int, you cannot put values of type string into that box.
例如,如果你有一个设计用来放入类型是int的值的盒子,你就不能把类型是string的值放入那个盒子。
We now know that this represents a function pointer type that can refer to any method taking a single int argument and returning a string.
我们现在知道了这是一个函数指针类型,它可以引用任何有一个int类型参数并且返回一个string类型的方法。
The getInstance() method first tests to determine if the type under consideration is supported by reflecting an appropriate method: getInt() for an int, getString() for a String, and so on.
getInstance()方法首先通过反射一个适当的方法以测试判断当前考虑的类型是否受支持:getInt() 对应于int,getString() 对应于String,等等。
The setProp.tag file can be used to set properties that have a type accepted by <c:set>, such as String, int, float, boolean as well as indexed properties, which can be String arrays.
tag文件用于设置拥有 <c:set>接受的类型(比如String、int、float 和boolean)的属性和索引属性,后者可能是 String数组。
Assign is only available for assigning a value to simple type fields such as string and int. To create an assign mapping.
Assign仅可用于为简单类型字段(如string和int)指定值。
A string literal cannot be implicitly converted to an int, so the call is an error.
字符串字面值无法隐式地转换为int型,因而该调用是错误的。
A string literal cannot be implicitly converted to an int, so the call is an error.
字符串字面值无法隐式地转换为int型,因而该调用是错误的。
应用推荐