Class ByteConverter.PositiveShorts

  • Enclosing class:
    ByteConverter

    private static final class ByteConverter.PositiveShorts
    extends java.lang.Object
    Simple stack structure for non-negative short values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int idx  
      private short[] shorts  
    • Constructor Summary

      Constructors 
      Constructor Description
      PositiveShorts()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void grow()  
      boolean isEmpty()  
      short pop()  
      void push​(short s)  
      int size()  
      • Methods inherited from class java.lang.Object

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

      • shorts

        private short[] shorts
      • idx

        private int idx
    • Constructor Detail

      • PositiveShorts

        PositiveShorts()
    • Method Detail

      • push

        public void push​(short s)
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • pop

        public short pop()
      • grow

        private void grow()