Class FixedArray


  • public class FixedArray
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int[] entries  
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedArray​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fill​(int value)  
      int get​(int index)  
      void put​(int index, int value)  
      int size()  
      • Methods inherited from class java.lang.Object

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

      • entries

        protected int[] entries
    • Constructor Detail

      • FixedArray

        public FixedArray​(int size)
    • Method Detail

      • get

        public int get​(int index)
      • put

        public void put​(int index,
                        int value)
      • fill

        public void fill​(int value)
      • size

        public int size()