将类数组对象转换为数组对象。
当对当前类启用跟踪时,清单7就创建了这些对象和数组。
Listing 7 creates these objects and arrays when trace is enabled for the current class.
进程本身使用另一个预先提供的类,叫作Alternative,这些警卫对象必须以对象数组的形式传递给它的构造函数。
The process itself uses another preprovided class called Alternative, to whose constructor these guard objects must be passed in as an object array.
它创建一个JSON对象数组,并将每个对象传递到story类的构造器中(如清单6所示)。
It creates an array of JSON objects and passes each object into the constructor of the Story class (shown in Listing 6).
必需的第二项更改是(至少)构造一个保存传递给 Collaborator类的构造函数的参数实际值的对象数组。
The second change required is to construct (at the very least) an object array holding the actual values of parameters to be passed into the Collaborator class' constructor.
下面的例子使用了一个工具类etagcomputeutils来产生对象所对应的字节数组,并处理MD5摘要逻辑。
The sample code USES a utility class EtagComputeUtils to generate a byte array representation of an object and to handle the MD 5 digest logic.
有关示例,请参阅cryptostream类的. NETFramework文档,它说明了如何加密来自传入的FileStream对象的字节数组。
For an example, see the.net Framework documentation for the CryptoStream class, which shows you how to encrypt a byte array from an incoming FileStream object.
在setUp方法内,用collaborator类的构造方法所需的实际值实例化对象数组。
Within the setUp method, you instantiate an object array with the actual values the Collaborator class 'constructor needs.
尽管Dictionary类当前与关联数组的包装器相差无几,但这里有一些了解对象功能的线索。
Even though the Dictionary class is currently little more than a wrapper around an associative array, there is some clue to the power of objects here.
这个特性与新的对象创建语法关系密切,新的语法可以用类似数组的语法很容易地在Groovy 中创建 非定制类。
This feature goes hand-in-hand with a new syntax for object creation, which makes it easy to create non-custom classes in Groovy with an array-like syntax.
一个Simpli5对象和jQuery对象非常类似,也是一个元素数组,调用对象的方法实际上会调用这些元素的方法,例如,document.body.addClass('myclass')和$('div').addClass('myclass')实际上是将这个类加入到元素中去。
So document.body.addClass('myclass') and $('div').addClass('myclass') both add to the class of the elements.
您可以缓存任何类型的数据,包括完整的对象图形、定制类、地图和数组。
You can cache any kind of data, including full object graphs, custom classes, maps, and arrays.
对于普通对象(非数组):对象必须是目标类的实例或目标类的子类的实例。
For a normal object (non-array) : the object must be an instance of the target class or a subclass of the target class.
该类仅仅将xml类转化为一个php对象,然后遍历该对象,并创建一个关联数组,如清单5所示。
This class simply converts the XML class to a PHP object and then walks through that object and creates an associative array, as in Listing 5.
要访问以类的形式存储在数组中的内容库对象,对象必须转换为它自己的类。
To access the Content store object that is stored in the array as the class expected to be returned, the object must be cast to its actual class.
Rails同时为许多其他对象提供了合理的blank ?定义:true,false,空数组及哈希表,数值类型,甚至是Object类本身。
Rails provides reasonable definitions of blank? For several other objects too: true, false, empty arrays or hashes, numeric types, and even the object class.
所有对象(包括数组)都实现这个类的方法。
All objects, including arrays, implement the methods of this class.
如果该对象表示的类或接口未实现接口,方法返回的数组长度为0。
If this object represents a class or interface that implements no interfaces, the method returns an array of length 0.
返回一Constructor对象数组,映射该Class对象表示的类中的所有声明的构造函数。
Returns an array of constructor objects reflecting all the constructors declared by the class represented by this class object.
返回一method对象数组,映射该Class对象表示的类或接口中声明的所有方法。
Returns an array of method objects reflecting all the methods declared by the class or interface represented by this class object.
返回一field对象数组,映射该Class对象表示的类或接口中声明的所有域。
Returns an array of field objects reflecting all the fields declared by the class or interface represented by this class object.
Vector类实现了一个可增长对象数组。
返回一field对象数组,映射该Class对象表示的类或接口中的所有可访问公共域。
Returns an array containing field objects reflecting all the accessible public fields of the class or interface represented by this class object.
返回一class对象的数组,映射该Class对象表示的类中作为成员声明的所有类和接口。
Returns an array of class objects reflecting all the classes and interfaces declared as members of the class represented by this class object.
现在,我知道有很多A S类实现IUID接口…但也有一堆类,它们不(普通的旧数组和对象,例如),这样,才不会解决我的问题。
Now, I know that many as classes implement the IUID interface... But there are also a bunch of classes which don't (plain old arrays and objects, for example), so that wouldn't solve my problem.
在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。
When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.
在派生类中重写时,返回与方法定义的输入数组对应的初始值设定项对象的数组。
When overridden in a derived class, returns an array of initializer objects corresponding to an input array of method definitions.
应用推荐