mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-19 21:50:13 +08:00
14 lines
314 B
Go
14 lines
314 B
Go
|
package collections
|
||
|
|
||
|
import "github.com/tursom/GoCollections/exceptions"
|
||
|
|
||
|
type Queue interface {
|
||
|
// Iterator MutableIterable
|
||
|
Iterator() Iterator
|
||
|
// MutableIterator MutableIterable
|
||
|
MutableIterator() MutableIterator
|
||
|
|
||
|
Push(element interface{}) exceptions.Exception
|
||
|
Offer() (interface{}, exceptions.Exception)
|
||
|
}
|