public class CachingActivityMapper extends java.lang.Object implements ActivityMapper
ActivityMapper
and caches the last activity it
returned, to be re-used if we see the same place twice.Constructor and Description |
---|
CachingActivityMapper(ActivityMapper wrapped)
Constructs a CachingActivityMapper object.
|
Modifier and Type | Method and Description |
---|---|
Activity |
getActivity(Place place)
Returns the activity to run for the given
Place , or null. |
public CachingActivityMapper(ActivityMapper wrapped)
wrapped
- an ActivityMapper objectpublic Activity getActivity(Place place)
ActivityMapper
Place
, or null.getActivity
in interface ActivityMapper
place
- a Place object