Class IndexedListData


  • public class IndexedListData
    extends java.lang.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 Detail

      • unsortedList

        private final java.util.ArrayList<SystemDescriptor<?>> unsortedList
      • sorted

        private volatile boolean sorted
    • Constructor Detail

      • IndexedListData

        public IndexedListData()
    • Method Detail

      • getSortedList

        public java.util.Collection<SystemDescriptor<?>> getSortedList()
      • 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()