Class NameClassPair

  • All Implemented Interfaces:
    java.io.Serializable

    public class NameClassPair
    extends java.lang.Object
    implements java.io.Serializable
    A class that stores the name of an attribute and the Class of that attribute's value.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String mClassName
      A class name
      private java.lang.String mName
      A name
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      NameClassPair​(java.lang.String aName, java.lang.String aClassName)
      Creates a new NameClassPair with the specified name and class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object aObj)
      Determines if two NameClassPairs are equal.
      java.lang.String getClassName()
      Gets the class name of the attribute's value.
      java.lang.String getName()
      Gets the name of the attribute.
      int hashCode()
      Gets the hash code for this object.
      java.lang.String toString()
      Gets string representation of this object; useful for debugging.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mName

        private java.lang.String mName
        A name
      • mClassName

        private java.lang.String mClassName
        A class name
    • Constructor Detail

      • NameClassPair

        public NameClassPair​(java.lang.String aName,
                             java.lang.String aClassName)
        Creates a new NameClassPair with the specified name and class.
        Parameters:
        aName - the name of an attribute
        aClassName - the name of the class of that attribute's value
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name of the attribute.
        Returns:
        the name
      • getClassName

        public java.lang.String getClassName()
        Gets the class name of the attribute's value.
        Returns:
        the class name
      • equals

        public boolean equals​(java.lang.Object aObj)
        Determines if two NameClassPairs are equal. Two NameClassPairs are equal if both their Name and ClassName properties are equal.
        Overrides:
        equals in class java.lang.Object
        Returns:
        the class name
      • hashCode

        public int hashCode()
        Gets the hash code for this object. The hash codes of two NameClassPairs x and y must be equal if x.equals(y) returns true;
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code for this object
      • toString

        public java.lang.String toString()
        Gets string representation of this object; useful for debugging.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of this object