Interface IDecimalMapKey

All Superinterfaces:
IMapKey

public interface IDecimalMapKey extends IMapKey
An IMapItem key based on an IDecimalItem.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get this key's value as a decimal.
    Get the atomic item used as the key.
    default boolean
    Determine if this key is the same as another key.

    Methods inherited from interface dev.metaschema.core.metapath.item.function.IMapKey

    hashCode
  • Method Details

    • getKey

      IDecimalItem getKey()
      Description copied from interface: IMapKey
      Get the atomic item used as the key.
      Specified by:
      getKey in interface IMapKey
      Returns:
      the atomic item
    • asDecimal

      @NonNull BigDecimal asDecimal()
      Get this key's value as a decimal.
      Returns:
      the equivalent decimal value
    • isSameKey

      default boolean isSameKey(IMapKey other)
      Description copied from interface: IMapKey
      Determine if this key is the same as another key.
      Specified by:
      isSameKey in interface IMapKey
      Parameters:
      other - the other key to compare
      Returns:
      true if the keys are the same, or false otherwise