mirror of
https://github.com/tursom/GoCollections.git
synced 2025-04-01 01:40:08 +08:00
19 lines
368 B
Go
19 lines
368 B
Go
package collections
|
|
|
|
import (
|
|
"github.com/tursom/GoCollections/exceptions"
|
|
"github.com/tursom/GoCollections/lang"
|
|
)
|
|
|
|
type (
|
|
Queue[T lang.Object] interface {
|
|
MutableIterable[T]
|
|
|
|
Offer(element T) exceptions.Exception
|
|
OfferAndGetNode(element T) (QueueNode[T], exceptions.Exception)
|
|
Poll() (T, exceptions.Exception)
|
|
}
|
|
|
|
QueueNode[T lang.Object] StackNode[T]
|
|
)
|