Documentation ¶
Index ¶
- type ArrayList
- func (l *ArrayList[T]) Add(t ...T) error
- func (l *ArrayList[T]) Clear()
- func (l *ArrayList[T]) Equals(o *ArrayList[T]) bool
- func (l *ArrayList[T]) Get(i int) (T, error)
- func (l *ArrayList[T]) IsEmpty() bool
- func (l *ArrayList[T]) Iter(yield func(int, T) bool)
- func (l *ArrayList[T]) Remove(index int) (T, error)
- func (l *ArrayList[T]) RemoveValue(t T) int
- func (l *ArrayList[T]) Size() int
- func (l *ArrayList[T]) Stream() *stream.Stream[T]
- func (l *ArrayList[T]) ToArray() []T
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayList ¶
type ArrayList[T comparable] struct { // contains filtered or unexported fields }
func New ¶
func New[T comparable]() *ArrayList[T]
func (*ArrayList[T]) RemoveValue ¶
type Builder ¶
type Builder[T comparable] struct { // contains filtered or unexported fields }
func NewBuilder ¶
func NewBuilder[T comparable]() *Builder[T]
func (*Builder[T]) WithElements ¶
func (*Builder[T]) WithInitialCapacity ¶ added in v1.0.15
Click to show internal directories.
Click to hide internal directories.