Interface IIdentified


public interface IIdentified
Allows access to an int identifier for an object, which is often but not necessarily unique. You can generate identifiers however you wish, but a simple counter is probably easiest and fastest, plus it is guaranteed to produce all possible identifiers without duplicates before cycling. This is a functional interface whose functional method is getIdentifier().
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the identifier for this object, as an int.
  • Method Details

    • getIdentifier

      int getIdentifier()
      Gets the identifier for this object, as an int.
      Returns:
      the int identifier for this