Interface HasSign<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      E sign()
      Creates and returns an expression that returns 1 if the result of the this expression is positive, -1 if the result of this expression is negative and 0 if the result of this expression is 0.
    • Method Detail

      • sign

        E sign()
        Creates and returns an expression that returns 1 if the result of the this expression is positive, -1 if the result of this expression is negative and 0 if the result of this expression is 0.

        If this expression is nullable and the result was null, then the result of the returned expression will also be null.

        Returns:
        the new expression