Class MutableByte


  • public class MutableByte
    extends java.lang.Object
    Mutable int, permitting to update packet sequence
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte value  
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableByte()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte get()
      Get current sequence value
      byte incrementAndGet()
      Increment sequence and get new value
      void set​(byte value)
      Set new sequence value
      • Methods inherited from class java.lang.Object

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

      • value

        private byte value
    • Constructor Detail

      • MutableByte

        public MutableByte()
    • Method Detail

      • set

        public void set​(byte value)
        Set new sequence value
        Parameters:
        value - new value
      • get

        public byte get()
        Get current sequence value
        Returns:
        value
      • incrementAndGet

        public byte incrementAndGet()
        Increment sequence and get new value
        Returns:
        new value