Class ByteArrayList


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

      Fields 
      Modifier and Type Field Description
      protected byte[] items  
      protected int size  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(byte newItem)  
      boolean addAll​(byte... source)  
      void clear()  
      void ensureCapacity​(int minCapacity)  
      byte get​(int index)  
      byte removeAtIndex​(int index)  
      int size()  
      byte[] toArray()  
      • Methods inherited from class java.lang.Object

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

      • size

        protected int size
      • items

        protected transient byte[] items
    • Constructor Detail

      • ByteArrayList

        public ByteArrayList()
      • ByteArrayList

        public ByteArrayList​(int initialCapacity)
    • Method Detail

      • add

        public boolean add​(byte newItem)
      • addAll

        public boolean addAll​(byte... source)
      • ensureCapacity

        public void ensureCapacity​(int minCapacity)
      • toArray

        public byte[] toArray()
      • removeAtIndex

        public byte removeAtIndex​(int index)
      • get

        public byte get​(int index)
      • clear

        public void clear()
      • size

        public int size()