Documentation ¶
Index ¶
- type Action
- type ArrayList
- func (a *ArrayList[E]) Add(e ...E) List[E]
- func (a *ArrayList[E]) AddAll(col List[E]) List[E]
- func (a *ArrayList[E]) Clear()
- func (a *ArrayList[E]) Collect() []E
- func (a *ArrayList[E]) Contains(e ...E) bool
- func (a *ArrayList[E]) DeepEquals(col List[E]) bool
- func (a *ArrayList[E]) Equals(e List[E]) (result bool)
- func (a *ArrayList[E]) Filter(pred Predicate[E]) List[E]
- func (a *ArrayList[E]) ForEach(action Action[E])
- func (a *ArrayList[E]) GetHash() string
- func (a *ArrayList[E]) IsEmpty() bool
- func (a *ArrayList[E]) Iterator() Iterator[E]
- func (a *ArrayList[E]) Remove(e ...E)
- func (a *ArrayList[E]) RemoveIf(pred Predicate[E])
- type Collector
- type Iterator
- type List
- type ListIterator
- type MapperFunc
- type MultiAction
- type MultiArrayList
- type MultiList
- type Predicate
- type Producer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayList ¶
type ArrayList[E any] struct { // contains filtered or unexported fields }
func (*ArrayList[E]) DeepEquals ¶
type List ¶
type List[E any] interface { Add(e ...E) List[E] AddAll(col List[E]) List[E] Clear() Contains(e ...E) bool DeepEquals(col List[E]) bool Equals(col List[E]) bool Filter(pred Predicate[E]) List[E] ForEach(action Action[E]) GetHash() string IsEmpty() bool Iterator() Iterator[E] Collect() []E Remove(e ...E) RemoveIf(pred Predicate[E]) }
func NewArrayList ¶
type ListIterator ¶
type ListIterator[E any] struct { // contains filtered or unexported fields }
func (*ListIterator[E]) CurrentItem ¶
func (i *ListIterator[E]) CurrentItem() E
func (*ListIterator[E]) First ¶
func (i *ListIterator[E]) First()
func (*ListIterator[E]) ForEach ¶
func (i *ListIterator[E]) ForEach(action Action[E])
func (*ListIterator[E]) IsDone ¶
func (i *ListIterator[E]) IsDone() bool
func (*ListIterator[E]) Next ¶
func (i *ListIterator[E]) Next()
type MapperFunc ¶
type MapperFunc[S, T any] func(h S) T
type MultiAction ¶
type MultiAction[E any] func(x E, z E)
type MultiArrayList ¶
type MultiArrayList[S, T any] struct { // contains filtered or unexported fields }
func (*MultiArrayList[S, T]) Add ¶
func (a *MultiArrayList[S, T]) Add(e ...S) MultiList[S, T]
func (*MultiArrayList[S, T]) AddAll ¶
func (a *MultiArrayList[S, T]) AddAll(col List[S]) MultiList[S, T]
func (*MultiArrayList[S, T]) Clear ¶
func (a *MultiArrayList[S, T]) Clear()
func (*MultiArrayList[S, T]) Collect ¶
func (a *MultiArrayList[S, T]) Collect() []S
func (*MultiArrayList[S, T]) Map ¶
func (a *MultiArrayList[S, T]) Map(mapperFunc MapperFunc[S, T]) List[T]
type MultiList ¶
type MultiList[S, T any] interface { Add(e ...S) MultiList[S, T] AddAll(lst List[S]) MultiList[S, T] Clear() Collect() []S Map(mapperFunc MapperFunc[S, T]) List[T] }
func NewMultiArrayList ¶
Click to show internal directories.
Click to hide internal directories.