Class BasicMetaProperty<P>

    • Constructor Detail

      • BasicMetaProperty

        protected BasicMetaProperty​(java.lang.String propertyName)
        Constructor.
        Parameters:
        propertyName - the property name, not empty
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: MetaProperty
        Gets the property name.

        The JavaBean style methods getFoo() and setFoo() will lead to a property name of 'foo' and so on.

        Specified by:
        name in interface MetaProperty<P>
        Returns:
        the name of the property, not empty
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from interface: MetaProperty
        Checks if this meta-property equals another.

        This compares the property name and declaring type. It does not compare the property or bean types.

        Specified by:
        equals in interface MetaProperty<P>
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other meta-property, null returns false
        Returns:
        true if equal
      • hashCode

        public int hashCode()
        Description copied from interface: MetaProperty
        Returns a suitable hash code.
        Specified by:
        hashCode in interface MetaProperty<P>
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • toString

        public java.lang.String toString()
        Returns a string that summarises the meta-property.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a summary string, not null