java.lang.Object
com.itextpdf.pdfoptimizer.handlers.imagequality.processors.utils.HashableArray

public final class HashableArray extends Object
It is a wrapper for long array for using as keys in HashMap and as values in HashSet.
  • Constructor Details

    • HashableArray

      public HashableArray (long[] array)
      Wraps the provided array. Copy of array is stored to keep the class immutable. Will store empty array if array is null.
      Parameters:
      array - is the array to wrap
  • Method Details

    • getArray

      public long[] getArray()
      Getter for a stored array.
      Returns:
      the copy of the stored array
    • equals

      public boolean equals (Object o)
      Overrides:
      equals in class Object
      Parameters:
      o -
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns: