Package org.apache.druid.indexer
Class Checks
java.lang.Object
org.apache.druid.indexer.Checks
Various helper methods useful for checking the validity of arguments to spec constructors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Property<T>checkAtMostOneNotNull(String name1, T value1, String name2, T value2) static <T> Property<T>checkAtMostOneNotNull(Property<T> property1, Property<T> property2) static <T> Property<T>checkOneNotNullOrEmpty(List<Property<T>> properties)
-
Method Details
-
checkOneNotNullOrEmpty
-
checkAtMostOneNotNull
- Returns:
- Non-null value, or first one if both are null. -1 is interpreted as null for historical reasons.
-
checkAtMostOneNotNull
- Returns:
- Non-null value, or first one if both are null. -1 is interpreted as null for historical reasons.
-