Package com.piketec.tpt.api.util
Class ApiIterator<E>
- java.lang.Object
-
- com.piketec.tpt.api.util.ApiIterator<E>
-
- Type Parameters:
E
- the type of elements returned by this iterator
- All Implemented Interfaces:
java.io.Serializable
,java.util.Iterator<E>
public class ApiIterator<E> extends java.lang.Object implements java.io.Serializable, java.util.Iterator<E>
A wrapper for aRemoteIterator
that will catch allRemoteExceptions
and rethrows them asApiExceptions
.- Author:
- Copyright (c) 2014-2024 Piketec GmbH - MIT License (MIT) - All rights reserved
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiIterator(RemoteIterator<E> delegate)
Creates a newApiIterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
-
-
-
Constructor Detail
-
ApiIterator
public ApiIterator(RemoteIterator<E> delegate)
Creates a newApiIterator
.- Parameters:
delegate
- TheRemoteIterator
where the method calls will be delgated to.
-
-