Package com.piketec.tpt.api.util
Interface RemoteIterable<T>
-
- Type Parameters:
T
- the type of elements in this collection
- All Superinterfaces:
java.rmi.Remote
- All Known Subinterfaces:
AssessmentGroup
,ExecutionConfiguration
,ExecutionConfigurationGroup
,RemoteCollection<E>
,RemoteIndexedList<KEY,E>
,RemoteList<E>
,ScenarioGroup
,TestSetGroup
,TransitionSpecGroup
- All Known Implementing Classes:
IterableRemoteCollection
,IterableRemoteIndexedList
,IterableRemoteList
public interface RemoteIterable<T> extends java.rmi.Remote
An interface to provide iterable functionallity for remote objects. Since all methods of aRemote
interface must throw aRemoteException
we cannot implementIterable
directly.- Author:
- Copyright (c) 2014-2024 Piketec GmbH - MIT License (MIT) - All rights reserved
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<T>
asIterable()
Provides anIterable
view of thisRemoteIterable
.RemoteIterator<T>
remoteIterator()
Provides a remote iterator that has the same interface asIterator
but every method can throw aRemoteException
as required by Java RMI.
-
-
-
Method Detail
-
remoteIterator
RemoteIterator<T> remoteIterator() throws java.rmi.RemoteException
Provides a remote iterator that has the same interface asIterator
but every method can throw aRemoteException
as required by Java RMI. This method is most likely not relevant for API users but needed forasIterable()
.- Returns:
- a remote iterator
- Throws:
java.rmi.RemoteException
- remote communication problem- See Also:
asIterable()
-
asIterable
java.lang.Iterable<T> asIterable() throws java.rmi.RemoteException
Provides anIterable
view of thisRemoteIterable
. This normally usesremoteIterator()
and wraps the return value into a realIterator
that throwsRuntimeExceptions
instead ofRemoteExceptions
so that this view can be used in for-each loops.- Returns:
- an iterable view of this
RemoteIterable
- Throws:
java.rmi.RemoteException
- remote communication problem- See Also:
ApiIterator
-
-