Object KeyExpr.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final KeyExpr tryFrom(String keyExpr) Try from.
      final KeyExpr autocanonize(String keyExpr) Autocanonize.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • tryFrom

         final KeyExpr tryFrom(String keyExpr)

        Try from.

        The default way to construct a KeyExpr. This function will ensure that the passed expression is valid. It won't however try to correct expressions that aren't canon.

        You may use autocanonize instead if you are unsure if the expression you will use for construction will be canon.

        Parameters:
        keyExpr - The intended key expression as a string.
        Returns:

        The KeyExpr in case of success.

      • autocanonize

         final KeyExpr autocanonize(String keyExpr)

        Autocanonize.

        This alternative constructor for key expressions will attempt to canonize the passed expression before checking if it is valid.

        Parameters:
        keyExpr - The intended key expression as a string.
        Returns:

        The canonized KeyExpr.