Known Direct Subclasses
  
 | 
Class Overview
TODO This class could take some kind of AllocationStrategy object.
 This implementation is particular useful/efficient for enter/poll operations.
 Its java.util.Queue like behavior performs better than a plain ArrayList, since it automatically shift the contents of its internal Array only when really necessary.
 Besides sparse allocations to increase the size of the internal Array, ShiftList is allocation free (unlike the java.util.LinkedList family).
 
 Supports null items.
 (c) Zynga 2012
 
Fields
Public Constructors
 
    
      
        public 
         
         
         
         
        
      
      ShiftList
      (int pInitialCapacity)
    
      
    
 
Public Methods
 
    
      
        public 
         
         
         
         
        void
      
      add
      (T pItem)
    
      
    
 
 
    
      
        public 
         
         
         
         
        void
      
      add
      (int pIndex, T pItem)
    
      
    
 
 
    
      
        public 
         
         
         
         
        void
      
      enter
      (int pIndex, T pItem)
    
      
    
 
 
    
      
        public 
         
         
         
         
        void
      
      enter
      (T pItem)
    
      
    
 
 
    
      
        public 
         
         
         
         
        T
      
      get
      (int pIndex)
    
      
    
 
 
    
      
        public 
         
         
         
         
        int
      
      indexOf
      (T pItem)
    
      
    
 
 
    
      
        public 
         
         
         
         
        boolean
      
      isEmpty
      ()
    
      
    
 
 
    
      
        public 
         
         
         
         
        T
      
      remove
      (int pIndex)
    
      
    
 
 
    
      
        public 
         
         
         
         
        boolean
      
      remove
      (T pItem)
    
      
    
 
 
    
      
        public 
         
         
         
         
        void
      
      set
      (int pIndex, T pItem)