public final class ServiceList extends WrapperList<Service>
| Constructor and Description |
|---|
ServiceList(Context context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Service service)
Inserts the specified element at the specified position in this list.
|
boolean |
add(Service service)
Adds a element at the end of the list.
|
boolean |
addAll(java.util.Collection<? extends Service> services)
Appends all of the elements in the specified collection to the end of
this list.
|
boolean |
addAll(int index,
java.util.Collection<? extends Service> services)
Inserts all of the elements in the specified collection into this list at
the specified position.
|
<T extends Service> |
get(java.lang.Class<T> clazz)
Returns a service matching a given service class.
|
Context |
getContext()
Returns the context.
|
void |
set(java.util.List<Service> services)
Sets the list of services.
|
void |
set(Service newService)
Replaces or adds a service.
|
void |
setContext(Context context)
Sets the context.
|
void |
start()
Starts each service.
|
void |
stop()
Stops each service.
|
clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toStringpublic ServiceList(Context context)
context - The context.public void add(int index,
Service service)
WrapperListadd in interface java.util.List<Service>add in class WrapperList<Service>index - The insertion position.service - The element to insert.public boolean add(Service service)
WrapperListadd in interface java.util.Collection<Service>add in interface java.util.List<Service>add in class WrapperList<Service>public boolean addAll(java.util.Collection<? extends Service> services)
WrapperListaddAll in interface java.util.Collection<Service>addAll in interface java.util.List<Service>addAll in class WrapperList<Service>services - The collection of elements to append.public boolean addAll(int index,
java.util.Collection<? extends Service> services)
WrapperListaddAll in interface java.util.List<Service>addAll in class WrapperList<Service>index - The insertion position.services - The collection of elements to insert.public <T extends Service> T get(java.lang.Class<T> clazz)
T - The service type.clazz - The service class to match.public Context getContext()
public void set(java.util.List<Service> services)
services - The list of services.public void set(Service newService)
newService - The new service to set.public void setContext(Context context)
context - The context.public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005-2024 Restlet.