Class GridMutableLong


  • public class GridMutableLong
    extends Object
    A mutable long for use in collections.
    • Constructor Detail

      • GridMutableLong

        public GridMutableLong​(long v)
        Constructor.
        Parameters:
        v - Long value.
      • GridMutableLong

        public GridMutableLong()
        Default constructor.
    • Method Detail

      • incrementAndGet

        public final long incrementAndGet()
        Increments by one the current value.
        Returns:
        Updated value.
      • get

        public long get()
        Gets the current value.
        Returns:
        Current value.
      • set

        public void set​(long v)
        Sets the new value.
        Parameters:
        v - New value.