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 intfirstNonZero(int firstValue, int secondValue) ReturnsfirstValueif it is non-zero, otherwisesecondValue.static intfirstNonZero(int firstValue, int secondValue, int thirdValue) ReturnsfirstValueif it is non-zero, otherwisesecondValueif it is non-zero, otherwisethirdValue.
-
Method Details
-
firstNonZero
public static int firstNonZero(int firstValue, int secondValue) ReturnsfirstValueif it is non-zero, otherwisesecondValue.- Parameters:
firstValue- first valuesecondValue- second value- Returns:
firstValueif it is non-zero, otherwisesecondValue
-
firstNonZero
public static int firstNonZero(int firstValue, int secondValue, int thirdValue) ReturnsfirstValueif it is non-zero, otherwisesecondValueif it is non-zero, otherwisethirdValue.- Parameters:
firstValue- first valuesecondValue- second valuethirdValue- third value- Returns:
firstValueif it is non-zero, otherwisesecondValueif it is non-zero, otherwisethirdValue
-