// Copyright 2015 Mathieu MAST. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package container

import (
	"reflect"
)

type Container interface {
	Add(interface{}) error
	GetSize() int
	Search(interface{}) (interface{}, error)
	Remove(interface{}) error
	ToArray() []interface{}
	ToArrayOfType(elementType reflect.Type) interface{}
}

// Copyright 2015 Mathieu MAST. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package container

import (
	"reflect"
)

type Container interface {
	Add(interface{}) error
	GetSize() int
	Search(interface{}) (interface{}, error)
	Remove(interface{}) error
	ToArray() []interface{}
	ToArrayOfType(reflect.Type) interface{}
	Visit(func(interface{}, int))
}

Add ToArrayOfType & Visit methods
Add ToArrayOfType & Visit methods
