- java.lang.Object
-
- org.joda.beans.impl.BasicMetaProperty<P>
-
- Type Parameters:
P
- the type of the property content
- All Implemented Interfaces:
MetaProperty<P>
- Direct Known Subclasses:
DirectMetaProperty
,StandaloneMetaProperty
public abstract class BasicMetaProperty<P> extends java.lang.Object implements MetaProperty<P>
An abstract base meta-property.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicMetaProperty(java.lang.String propertyName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Checks if this meta-property equals another.int
hashCode()
Returns a suitable hash code.java.lang.String
name()
Gets the property name.java.lang.String
toString()
Returns a string that summarises the meta-property.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.joda.beans.MetaProperty
annotation, annotations, createProperty, declaringType, get, getString, getString, metaBean, propertyGenericType, propertyType, put, set, setString, setString, style
-
-
-
-
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 interfaceMetaProperty<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 interfaceMetaProperty<P>
- Overrides:
equals
in classjava.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 interfaceMetaProperty<P>
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code
-
toString
public java.lang.String toString()
Returns a string that summarises the meta-property.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a summary string, not null
-
-