Interface PropertyIdMapping


public interface PropertyIdMapping
Interface for the bidirectional mapping from name to numeric IDs and vice versa.
Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    id(ReadableProperty<?> property)
     
    name(int id)
     
  • Method Details

    • name

      String name(int id)
      Parameters:
      id - the ID of the property.
      Returns:
      the name of the property with the given ID or null if no mapping is defined for the given ID.
    • id

      int id(ReadableProperty<?> property)
      Parameters:
      property - the ReadableProperty.
      Returns:
      the ID of the property or -1 if no mapping is defined for the given ID.