Documentation
¶
Index ¶
- type Iterator
- type Stack
- func (s *Stack[V]) Add(value V) bool
- func (s *Stack[V]) AddAll(other structs.Collection[V]) bool
- func (s *Stack[V]) AddIterator(iterator structs.Iterator[V]) bool
- func (s *Stack[V]) Clear()
- func (s *Stack[V]) Contains(value V) bool
- func (s *Stack[V]) ContainsAll(other structs.Collection[V]) bool
- func (s *Stack[V]) Element() V
- func (s *Stack[V]) IsEmpty() bool
- func (s *Stack[V]) Iterator() structs.Iterator[V]
- func (s *Stack[V]) Peek() V
- func (s *Stack[V]) Poll() V
- func (s *Stack[V]) Remove(value V) bool
- func (s *Stack[V]) RemoveAll(other structs.Collection[V]) bool
- func (s *Stack[V]) RemoveHead() V
- func (s *Stack[V]) RemoveIterator(iter structs.Iterator[V]) bool
- func (s *Stack[V]) RetainAll(other structs.Collection[V]) bool
- func (s *Stack[V]) Size() int
- func (s *Stack[V]) Values() []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stack ¶
type Stack[V any] struct { // contains filtered or unexported fields }
func FromOrdered ¶
func FromOrdered[V constraints.Ordered](values ...V) *Stack[V]
func NewOrdered ¶
func NewOrdered[V constraints.Ordered]() *Stack[V]
func (*Stack[V]) ContainsAll ¶
func (s *Stack[V]) ContainsAll(other structs.Collection[V]) bool
func (*Stack[V]) RemoveHead ¶
func (s *Stack[V]) RemoveHead() V
Click to show internal directories.
Click to hide internal directories.