Interface ActivityCollection
-
- All Known Subinterfaces:
ActivityStream
@ProviderType public interface ActivityCollection
A simple collection of activities usually aggregated from several activity streams.
-
-
Field Summary
Fields Modifier and Type Field Description static ActivityCollection
EMPTY
Empty activity collection.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<Activity>
getActivities(int offset, int length)
Returnslength
activities of this stream, starting atoffset
.
-
-
-
Field Detail
-
EMPTY
static final ActivityCollection EMPTY
Empty activity collection.
-
-
Method Detail
-
getActivities
java.lang.Iterable<Activity> getActivities(int offset, int length) throws ActivityException
Returnslength
activities of this stream, starting atoffset
.- Parameters:
offset
- number of activities to skiplength
- number of activities to return. specifying a value <= 0 returns all activities.- Returns:
- a collection of activities
- Throws:
ActivityException
- if an error occurs.
-
-