Class Array

java.lang.Object
pretty.utils.Array

public class Array extends Object
Utility functions for arrays
  • Constructor Details

    • Array

      public Array()
  • Method Details

    • exists

      public static <T> boolean exists(T[] array, T value)
      Check if a value exists in an array
      Type Parameters:
      T - T - type of array
      Parameters:
      array - - array to check
      value - - value to check
      Returns:
      true if value exists in array, false otherwise