Package com.piketec.tpt.api.util
Class ApiIterable<E>
- java.lang.Object
-
- com.piketec.tpt.api.util.ApiIterable<E>
-
- Type Parameters:
E
- the type of elements returned by this iterable
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
public class ApiIterable<E> extends java.lang.Object implements java.io.Serializable, java.lang.Iterable<E>
A wrapper for aRemoteIterable
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 ApiIterable(RemoteIterable<E> delegate)
Creates a newApiIterable
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<E>
iterator()
-
-
-
Constructor Detail
-
ApiIterable
public ApiIterable(RemoteIterable<E> delegate)
Creates a newApiIterable
.- Parameters:
delegate
- TheRemoteIterable
where the method calls will be delgated to.
-
-