コード例 #1
0
 /**
  * Constructs a OrderedListAsLinkedList with the given size.
  */
 public function __construct()
 {
     parent::__construct();
     $this->list = new LinkedList();
 }
コード例 #2
0
 /**
  * Constructs a OrderedListAsArray with the given size.
  *
  * @param integer size The size of this list.
  */
 public function __construct($size = 0)
 {
     parent::__construct();
     $this->array = new BasicArray($size);
 }