包含项目名称的字符串对象的列表。
Dependencies: the list of String objects containing the project names.
字符串对象和字节对象是不兼容的。
事实上,字符串对象是str类的一个实例。
第一个数组,主题数组,是一个字符串对象数组。
The first array, the topic array, is an array of String objects.
这些字符串对象被称为原子化字符串。
两种方法都可以将输入的内容更改为新的字符串对象。
最常见的转换类型是与字符串对象的相互转换。
The most common types to convert are to and from a string object.
首先,对字符串对象“hello”调用methods方法。
First the methods method is invoked on the string object "hello."
使用单引号、双引号和三引号语法创建的字符串仍然是字符串对象。
The strings I've been creating using the single, double, or triple quotation mark syntax are still string objects.
一组应该被添加到项目依赖关系列表中包含项目名称的字符串对象。
Dependencies: the list of String objects containing the project names to add to the project dependencies list.
这一示例应用程序将字符串对象泄漏到一个静态hashmap中。
This sample application leaks string objects into a static HashMap.
这会导致将十万个字符串对象添加到容器myContainer 中。
This results in the addition of a hundred thousand String objects into the container: myContainer.
但是您也可以使用str类构造函数显式地创建字符串对象,如清单6所示。
But you can also explicitly create a string object by using the STR class constructor, as shown in Listing 6.
在此演示应用程序中,我们将使用它把字符串对象分割为StringArray。
In this demo, we use it to cut a string object to StringArray.
然后该属性的值在服务器控件生命周期的保存状态阶段后保存到一个字符串对象。
This property's value is then persisted to a string object after the save state stage of the server control's life cycle.
数据通常从分析器缓冲区读入字符串对象,然后,字符串对象被推送到客户端缓冲区。
Normally, the data is read from the parser buffer into the string object, which is then pushed to the client buffer.
要发送字符串对象数组,您调用JSON . stringify函数,将数组作为参数传递进来。
To send your array of string objects, you call the JSON.stringify function, passing in the array as the argument.
图1通过名为MyClass的示例展示了这些术语,此示例具有一个HashSet,包含字符串对象。
Figure 1 shows these terms with an example class named MyClass which is holding a HashSet that contains string objects.
标题字符串添加到条目数组后,就释放标题字符串对象,这样下一个标题就不会添加到前一个标题上。
After the title string is added to the items array, you release the title string object so that the next title is not appended to the previous title.
从对id方法两次调用的输出中可以看出,创建的新字符串对象中保存的是向原字符串中添加文本的结果。
As you can see from the output from the two calls to the id method, a new string object was created to hold the result of adding text to the original string.
相反,如果想要从该字符串得到bytesliteral表示,可以使用字符串对象的encode方法。
Conversely, use the encode method of a string object if you want a bytes literal from that string.
所以,在字符串上的任何操作,包括字符串连接,都产生一个新的字符串对象,而不是更改一个存在的字符串。
Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one.
JSR 286添加了write方法,允许您将URL对象直接流向响应写出程序,从而避免创建临时字符串对象。
JSR 286 adds a write method that allows you to stream URL objects directly to the response writer instead, avoiding the creation of temporary string objects.
图2中的截图高亮度标示了一个内存泄漏(字符串对象正在泄漏),连同泄漏的包装形态(矢量对象)和根(TestThreeTierQueue对象)。
The snapshot in Figure 2 highlights a memory leak (String object is leaking), along with the leak's container type (Vector object), and root (TestThreeTierQueue object).
如果我们回想一下我们一开始讲过的数据对象的种类,浮点数,整数,字符串,它们实际上有相同的行为方式。
If we go back up to the kinds of data objects we started with, floats, ints, strings, they actually behave the same way.
前面的示例包含一个类对象和字符串。
这种序列化方式强行在写入一个字符之前在内存中建立整个对象的字符串表示,对于大型对象来说,这是个非常大的性能拖累。
This approach to serialization forces a string representation of the entire object to be created in memory before a single character can be written, which is a big performance drag for large objects.
它用于诸如字符串常量和类之类的对象。
所以自变量(数据)-无论是浮点数、整数、字符串还是复杂对象-都要编码成可以传输到RPC接收方的格式。
So the arguments (the data) — whether they are floating-point Numbers, integers, character strings, or complex objects — are encoded into a format that can be transferred to the RPC receiver.
支持的变量包括整型、浮点型的数字、字符串、数组和对象。
Supported variables include integers, floating point Numbers, strings, arrays, and objects.
应用推荐