Documentation of 'visad.data.in.MD5Key' Java class
MD5Key
visad.data.in

Class MD5Key



  • public class MD5Key
    extends java.lang.Object
    Provides support for computing an MD5 key for an object. Such a key may be used to obtain a hash code for an object and also supports implementation of a fast equals(Object) method for objects whose natural method might be computationally expensive.

    Instances are immutable.

    • Constructor Summary

      Constructors 
      Constructor and Description
      MD5Key(java.lang.Object obj)
      Constructs from an object.
      MD5Key(java.lang.Object[] objs)
      Constructs from an array of objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Indicates if this instance is semantically identical to another object.
      int hashCode()
      Returns the hash code of this instance.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MD5Key

        public MD5Key(java.lang.Object obj)
               throws java.io.IOException
        Constructs from an object.
        Parameters:
        obj - The object to have an MD5 checksum computed for it.
        Throws:
        java.io.IOException - Couldn't compute MD5 checksum.
      • MD5Key

        public MD5Key(java.lang.Object[] objs)
               throws java.io.IOException
        Constructs from an array of objects.
        Parameters:
        objs - The objects to have an MD5 checksum computed for them.
        Throws:
        java.io.IOException - Couldn't compute MD5 checksum.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object obj)
        Indicates if this instance is semantically identical to another object. This will be the case if the other object is also of this class and its MD5 checksum is identical to this instances MD5 checksum.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The other object.
        Returns:
        true if and only if this instance is semantically identical to the other object.
      • hashCode

        public int hashCode()
        Returns the hash code of this instance. The hash code is the hash code of the MD5 checksum.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code of this instance.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.