Class BasicMetaProperty<P>

    • Constructor Detail

      • BasicMetaProperty

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

      • name

        public 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​(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 Object
        Parameters:
        obj - the other meta-property, null returns false
        Returns:
        true if equal
      • toString

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