Package ddf.catalog.util.impl
Class SortedServiceReferenceList
java.lang.Object
ddf.catalog.util.impl.SortedServiceReferenceList
- All Implemented Interfaces:
Iterable<org.osgi.framework.ServiceReference>,Collection<org.osgi.framework.ServiceReference>,List<org.osgi.framework.ServiceReference>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int arg0, org.osgi.framework.ServiceReference arg1) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanadd(org.osgi.framework.ServiceReference arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanaddAll(int arg0, Collection<? extends org.osgi.framework.ServiceReference> arg1) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanaddAll(Collection<? extends org.osgi.framework.ServiceReference> arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.voidbindService(org.osgi.framework.ServiceReference ref) Adds the newly bound OSGi service and its service reference to the internally maintained and sorted serviceSet.voidclear()Unsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanbooleancontainsAll(Collection<?> arg0) org.osgi.framework.ServiceReferenceget(int arg0) intbooleanisEmpty()Iterator<org.osgi.framework.ServiceReference>iterator()intlastIndexOf(Object arg0) ListIterator<org.osgi.framework.ServiceReference>ListIterator<org.osgi.framework.ServiceReference>listIterator(int arg0) org.osgi.framework.ServiceReferenceremove(int arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanUnsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanremoveAll(Collection<?> arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.booleanretainAll(Collection<?> arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.org.osgi.framework.ServiceReferenceset(int arg0, org.osgi.framework.ServiceReference arg1) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.intsize()List<org.osgi.framework.ServiceReference>subList(int arg0, int arg1) Object[]toArray()<T> T[]toArray(T[] arg0) voidunbindService(org.osgi.framework.ServiceReference ref) Removes the newly bound OSGi service and its service reference to the internally maintained and sorted serviceMap.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
SortedServiceReferenceList
public SortedServiceReferenceList()
-
-
Method Details
-
bindService
public void bindService(org.osgi.framework.ServiceReference ref) Adds the newly bound OSGi service and its service reference to the internally maintained and sorted serviceSet. This method is invoked when a service is bound (created/installed).- Parameters:
ref- the OSGi service reference
-
unbindService
public void unbindService(org.osgi.framework.ServiceReference ref) Removes the newly bound OSGi service and its service reference to the internally maintained and sorted serviceMap. This method is invoked when a service is unbound (removed/uninstalled).- Parameters:
ref- the OSGi service reference
-
add
public boolean add(org.osgi.framework.ServiceReference arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only.- Specified by:
addin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
addin interfaceList<org.osgi.framework.ServiceReference>
-
add
public void add(int arg0, org.osgi.framework.ServiceReference arg1) Unsupported operation, throws an UnsupportedOperationException since this list is read-only. -
addAll
Unsupported operation, throws an UnsupportedOperationException since this list is read-only.- Specified by:
addAllin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
addAllin interfaceList<org.osgi.framework.ServiceReference>
-
addAll
Unsupported operation, throws an UnsupportedOperationException since this list is read-only. -
clear
public void clear()Unsupported operation, throws an UnsupportedOperationException since this list is read-only.- Specified by:
clearin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
clearin interfaceList<org.osgi.framework.ServiceReference>
-
contains
- Specified by:
containsin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
containsin interfaceList<org.osgi.framework.ServiceReference>
-
containsAll
- Specified by:
containsAllin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
containsAllin interfaceList<org.osgi.framework.ServiceReference>
-
get
public org.osgi.framework.ServiceReference get(int arg0) -
indexOf
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
isEmptyin interfaceList<org.osgi.framework.ServiceReference>
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<org.osgi.framework.ServiceReference>
-
listIterator
- Specified by:
listIteratorin interfaceList<org.osgi.framework.ServiceReference>
-
listIterator
- Specified by:
listIteratorin interfaceList<org.osgi.framework.ServiceReference>
-
remove
Unsupported operation, throws an UnsupportedOperationException since this list is read-only.- Specified by:
removein interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
removein interfaceList<org.osgi.framework.ServiceReference>
-
remove
public org.osgi.framework.ServiceReference remove(int arg0) Unsupported operation, throws an UnsupportedOperationException since this list is read-only. -
removeAll
Unsupported operation, throws an UnsupportedOperationException since this list is read-only.- Specified by:
removeAllin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
removeAllin interfaceList<org.osgi.framework.ServiceReference>
-
retainAll
Unsupported operation, throws an UnsupportedOperationException since this list is read-only.- Specified by:
retainAllin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
retainAllin interfaceList<org.osgi.framework.ServiceReference>
-
set
public org.osgi.framework.ServiceReference set(int arg0, org.osgi.framework.ServiceReference arg1) Unsupported operation, throws an UnsupportedOperationException since this list is read-only. -
size
public int size()- Specified by:
sizein interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
sizein interfaceList<org.osgi.framework.ServiceReference>
-
subList
-
toArray
- Specified by:
toArrayin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
toArrayin interfaceList<org.osgi.framework.ServiceReference>
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<org.osgi.framework.ServiceReference>- Specified by:
toArrayin interfaceList<org.osgi.framework.ServiceReference>
-