Class ObjectUtils.HashCode

java.lang.Object
net.sf.jasperreports.engine.util.ObjectUtils.HashCode
Enclosing class:
ObjectUtils

public static class ObjectUtils.HashCode extends Object
Hash code creator for objects.
  • Constructor Details

    • HashCode

      public HashCode()
  • Method Details

    • addToHash

      protected void addToHash(int value)
    • add

      public void add(int value)
      Adds an integer value to the hash.
      Parameters:
      value -
    • add

      public void add(boolean value)
      Adds a boolean value to the hash.
      Parameters:
      value -
    • add

      public void add(Object value)
      Adds an object to the hash, using Object.hashCode().
      Parameters:
      value -
    • addIdentical

      public void addIdentical(Object value)
      Adds an object to the hash, checking whether the object implements Deduplicable and using the deduplication hash code in that case.
      Parameters:
      value -
    • addIdentity

      public void addIdentity(Object value)
      Adds an object to the hash using its identity (System.identityHashCode).
      Parameters:
      value -
    • addIdentical

      public void addIdentical(Object[] values)
      Adds an array of objects to the hash, checking if the objects implement Deduplicable.
      Parameters:
      values -
      See Also:
    • addIdentical

      public void addIdentical(List<?> values)
      Adds a list of objects to the hash, checking if the objects implement Deduplicable.
      Parameters:
      values -
      See Also:
    • add

      public void add(JRPropertiesMap properties)
      Adds a set of properties to the hash.
      Parameters:
      properties -
    • getHashCode

      public int getHashCode()