Collection (interface)
(没有可用的版本信息,可能只在Git中)
集合是基本接口,涵盖了该库中所有数据结构的通用功能。它保证所有结构都是可遍历的,可数的,并且可以使用json_encode()将其转换为json。
接口简介
Ds\Collection implements Traversable , Countable , JsonSerializable {
/* Methods */
abstract public void clear ( void )
abstract public Ds\Collection copy ( void )
abstract public bool isEmpty ( void )
abstract public array toArray ( void )
}
Table of Contents
- Ds\Collection::clear — Removes all values.
- Ds\Collection::copy — Returns a shallow copy of the collection.
- Ds\Collection::isEmpty — Returns whether the collection is empty
- Ds\Collection::toArray — Converts the collection to an array.
Ds\Collection::clear →
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com