Documentation of 'org.ddogleg.struct.GrowQueue_I32' Java class
GrowQueue_I32
org.ddogleg.struct

Class GrowQueue_I32



  • public class GrowQueue_I32
    extends java.lang.Object
    This is a queue that is composed of integers. Elements are added and removed from the tail
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      int[] data 
      int size 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(int value) 
      void addAll(GrowQueue_I32 queue) 
      void addAll(int[] array, int startIndex, int endIndex) 
      void fill(int value) 
      int get(int index) 
      void insert(int index, int value)
      Inserts the value at the specified index and shifts all the other values down.
      int pop() 
      void push(int val) 
      void remove(int index) 
      void removeHead(int total)
      Removes the first 'total' elements from the queue.
      int removeTail() 
      void reset() 
      void resize(int size) 
      void set(int index, int value) 
      void setMaxSize(int size) 
      void setTo(GrowQueue_I32 original) 
      int size() 
      int unsafe_get(int index) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • data

        public int[] data
      • size

        public int size
    • Constructor Detail

      • GrowQueue_I32

        public GrowQueue_I32(int maxSize)
      • GrowQueue_I32

        public GrowQueue_I32()
    • Method Detail

      • reset

        public void reset()
      • addAll

        public void addAll(int[] array,
                           int startIndex,
                           int endIndex)
      • add

        public void add(int value)
      • push

        public void push(int val)
      • get

        public int get(int index)
      • unsafe_get

        public int unsafe_get(int index)
      • set

        public void set(int index,
                        int value)
      • remove

        public void remove(int index)
      • insert

        public void insert(int index,
                           int value)
        Inserts the value at the specified index and shifts all the other values down.
      • removeHead

        public void removeHead(int total)
        Removes the first 'total' elements from the queue. Element 'total' will be the new start of the queue
        Parameters:
        total - Number of elements to remove from the head of the queue
      • removeTail

        public int removeTail()
      • resize

        public void resize(int size)
      • setMaxSize

        public void setMaxSize(int size)
      • fill

        public void fill(int value)
      • size

        public int size()
      • pop

        public int pop()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.