Class IndexedListData

java.lang.Object
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.
  • Field Details

  • Constructor Details

    • IndexedListData

      public IndexedListData()
  • Method Details

    • getSortedList

      public Collection<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()
    • size

      public int size()