iterator

package
v0.0.0-...-bc2382c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	// contains filtered or unexported methods
}

type Iterator

type Iterator interface {
	HasNext() bool
	GetNext() *MentalProblem
}

type MentalProblem

type MentalProblem struct {
	Name         string
	AgeOfReceipt int
}

type MentalProblemCollection

type MentalProblemCollection struct {
	MentalProblems []*MentalProblem
}

func (*MentalProblemCollection) CreateIterator

func (mp *MentalProblemCollection) CreateIterator() Iterator

type MentalProblemIterator

type MentalProblemIterator struct {
	MentalProblems []*MentalProblem
	// contains filtered or unexported fields
}

func (*MentalProblemIterator) GetNext

func (mp *MentalProblemIterator) GetNext() *MentalProblem

func (*MentalProblemIterator) HasNext

func (mp *MentalProblemIterator) HasNext() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL