org.jvnet.hk2.internal
Class IndexedListData

java.lang.Object
  extended by org.jvnet.hk2.internal.IndexedListData

public class IndexedListData
extends Object

This object contains a list of values. The list is not always sorted, but will always be returned sorted. All of the methods on here must be called with lock held.

Author:
jwells

Constructor Summary
IndexedListData()
           
 
Method Summary
 void addDescriptor(SystemDescriptor<?> descriptor)
           
 void clear()
           
 LinkedList<SystemDescriptor<?>> getSortedList()
           
 boolean isEmpty()
           
 void removeDescriptor(SystemDescriptor<?> descriptor)
           
 void unSort()
          Called by a SystemDescriptor when its ranking has changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedListData

public IndexedListData()
Method Detail

getSortedList

public LinkedList<SystemDescriptor<?>> getSortedList()

addDescriptor

public void addDescriptor(SystemDescriptor<?> descriptor)

removeDescriptor

public void removeDescriptor(SystemDescriptor<?> descriptor)

isEmpty

public boolean isEmpty()

unSort

public void unSort()
Called by a SystemDescriptor when its ranking has changed


clear

public void clear()


Copyright © 2013 Oracle Corporation. All Rights Reserved.