
org.opentripplanner.client.validation.CollectionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp-client Show documentation
Show all versions of otp-client Show documentation
Java client for the OpenTripPlanner GraphQL API
package org.opentripplanner.client.validation;
import java.util.Collection;
import java.util.Objects;
public class CollectionUtils {
public static Collection assertHasValue(Collection coll) {
Objects.requireNonNull(coll);
if (coll.isEmpty()) {
throw new IllegalArgumentException("Collection has no elements.");
}
return coll;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy