Interface IKey<T>

All Known Implementing Classes:
Key

public interface IKey<T>
Simple interface to enrich the Map key with some functionality like assertion of value type and default value handling.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    checks if given value is equal to default value
    key()
     
  • Method Details

    • key

      String key()
      Returns:
      the key to use in Map
    • isDefaultValue

      boolean isDefaultValue(T value)
      checks if given value is equal to default value
      Parameters:
      value - The value to check.
      Returns:
      true, if given value is equal to default value
    • getDefaultValue

      T getDefaultValue()
      Returns:
      the default value