|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.api.property.AbstractPropertyInstance<T>
public abstract class AbstractPropertyInstance<T>
AbstractPropertyInstance
is the base implementation of Property
.
Field Summary | |
---|---|
protected PropertyInfo |
propertyInfo
|
Constructor Summary | |
---|---|
protected |
AbstractPropertyInstance(PropertyInfo aPropertyInfo)
Construct an instance of ComputedPropertyInstance . |
Method Summary | ||
---|---|---|
boolean |
equals(Object o)
Perform equals with o argument. |
|
int |
hashCode()
Calculate hash code. |
|
boolean |
isComputed()
|
|
boolean |
isImmutable()
|
|
|
metaInfo(Class<V> anInfoType)
Returns the property info given anInfoType argument. |
|
QualifiedName |
qualifiedName()
Returns the qualified name of this Property . |
|
Type |
type()
Get the type of the property. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.qi4j.api.property.Property |
---|
get, set |
Field Detail |
---|
protected final PropertyInfo propertyInfo
Constructor Detail |
---|
protected AbstractPropertyInstance(PropertyInfo aPropertyInfo) throws IllegalArgumentException
ComputedPropertyInstance
.
aPropertyInfo
- The property info. This argument must not be null
.
IllegalArgumentException
- Thrown if the specified aPropertyInfo
argument is null
.Method Detail |
---|
public final <V> V metaInfo(Class<V> anInfoType)
anInfoType
argument.
metaInfo
in interface PropertyInfo
anInfoType
- The info type.
anInfoType
argument.public final QualifiedName qualifiedName()
Property
. Must not return null
.
qualifiedName
in interface PropertyInfo
Property
.public final Type type()
PropertyInfo
type
in interface PropertyInfo
public boolean isImmutable()
isImmutable
in interface PropertyInfo
public boolean isComputed()
isComputed
in interface PropertyInfo
public boolean equals(Object o)
o
argument.
The definition of equals() for the ComputedProperty is that if the Value, subclass and all the metaInfo are
equal, then th
equals
in class Object
o
- The other object to compare.
boolean
indicator whether this object is equals the other.public int hashCode()
hashCode
in class Object
ComputedPropertyInstance
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |