mirror of
https://github.com/tursom/GoCollections.git
synced 2025-02-26 20:20:31 +08:00
14 lines
253 B
Go
14 lines
253 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
|
|
Poll() (T, exceptions.Exception)
|
|
}
|