
org.opentripplanner.util.ArrayUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.util;
/**
* This class replaces a small part of the functionality provided by ArrayUtils from Apache Commons.
*/
public class ArrayUtils {
public static boolean contains(Object array[], Object object) {
if (array != null) {
if (object != null) {
for (Object element : array) if (object.equals(element)) return true;
} else {
for (Object element : array) if (element == null) return true;
}
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy