Interface Decrementable


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

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

    • decr

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