Interface Incrementable


public interface Incrementable
An object implementing this interface is marked as having custom incrementation logic. When using the '+' operator on while pointing to an instance, incr() will be called.
  • Method Summary

    Modifier and Type
    Method
    Description
    Called when the '+' operator is used while pointing towards this instance.
  • Method Details

    • incr

      Object incr()
      Called when the '+' operator is used while pointing towards this instance.
      Returns:
      The object to place at the pointer. Can be null or this.