mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
14 lines
233 B
Go
14 lines
233 B
Go
|
package collections
|
||
|
|
||
|
type noopIterator struct{}
|
||
|
|
||
|
var NoopIterator = &noopIterator{}
|
||
|
|
||
|
func (iterator *noopIterator) HasNext() bool {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (iterator *noopIterator) Next() (DataSet, error) {
|
||
|
return nil, ErrExhausted
|
||
|
}
|