mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-16 11:00:14 +08:00
17 lines
364 B
Go
17 lines
364 B
Go
package collections
|
|
|
|
import (
|
|
"github.com/tursom/GoCollections/exceptions"
|
|
"github.com/tursom/GoCollections/lang"
|
|
)
|
|
|
|
type Queue[T lang.Object] interface {
|
|
// Iterator MutableIterable
|
|
Iterator() Iterator[T]
|
|
// MutableIterator MutableIterable
|
|
MutableIterator() *linkedListIterator[T]
|
|
|
|
Push(element T) exceptions.Exception
|
|
Offer() (T, exceptions.Exception)
|
|
}
|