private void validate()

in uber-rides/src/main/java/com/uber/sdk/rides/client/model/RideUpdateParameters.java [118:132]


        private void validate() {
            if (endPlaceId != null) {
                if (endLatitude != null || endLongitude != null) {
                    throw new IllegalArgumentException("Exactly one of dropoff place or dropoff coordinates is "
                            + "required.");
                }
            } else {
                if (endLatitude == null && endLongitude == null) {
                    throw new IllegalArgumentException("Exactly one of dropoff place or dropoff coordinates is "
                            + "required.");
                } else if (endLatitude == null || endLongitude == null) {
                    throw new IllegalArgumentException("Need both dropoff latitude and dropoff longitude");
                }
            }
        }