java.lang.Object
org.firebirdsql.jaybird.util.ConditionalHelpers
Helpers for conditional behaviour and conditional expressions.
- Since:
- 6
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
firstNonZero
(int firstValue, int secondValue) ReturnsfirstValue
if it is non-zero, otherwisesecondValue
.static int
firstNonZero
(int firstValue, int secondValue, int thirdValue) ReturnsfirstValue
if it is non-zero, otherwisesecondValue
if it is non-zero, otherwisethirdValue
.
-
Method Details
-
firstNonZero
public static int firstNonZero(int firstValue, int secondValue) ReturnsfirstValue
if it is non-zero, otherwisesecondValue
.- Parameters:
firstValue
- first valuesecondValue
- second value- Returns:
firstValue
if it is non-zero, otherwisesecondValue
-
firstNonZero
public static int firstNonZero(int firstValue, int secondValue, int thirdValue) ReturnsfirstValue
if it is non-zero, otherwisesecondValue
if it is non-zero, otherwisethirdValue
.- Parameters:
firstValue
- first valuesecondValue
- second valuethirdValue
- third value- Returns:
firstValue
if it is non-zero, otherwisesecondValue
if it is non-zero, otherwisethirdValue
-