Class Array

java.lang.Object
pretty.utils.Array

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

    • Array Link icon

      public Array()
  • Method Details Link icon

    • exists Link icon

      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