public static Optional < Condition > createCompareCondition ( final PredicateCompareRightValue compareRightValue , final Column column ) { return compareRightValue . getExpression ( ) instanceof SimpleExpressionSegment ? Optional . of ( new Condition ( column , ( ( SimpleExpressionSegment ) compareRightValue . getExpression ( ) ) . getSQLExpression ( ) ) ) : Optional . < Condition > absent ( ) ; }
Create condition of compare operator .