Class AbstractMemberAccessor
java.lang.Object
org.optaplanner.core.impl.domain.common.accessor.AbstractMemberAccessor
- All Implemented Interfaces:
MemberAccessor
- Direct Known Subclasses:
AbstractGizmoMemberAccessor
,ReflectionBeanPropertyMemberAccessor
,ReflectionFieldMemberAccessor
,ReflectionMethodMemberAccessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal <Fact_,
Result_>
Function<Fact_,Result_> In order to support node sharing in constraint streams, we need to referenceMemberAccessor.executeGetter(Object)
in a way so that the method reference stays the same instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.impl.domain.common.accessor.MemberAccessor
executeGetter, executeSetter, getAnnotation, getDeclaredAnnotationsByType, getDeclaringClass, getGenericType, getName, getSpeedNote, getType, supportSetter
-
Constructor Details
-
AbstractMemberAccessor
public AbstractMemberAccessor()
-
-
Method Details
-
getGetterFunction
Description copied from interface:MemberAccessor
In order to support node sharing in constraint streams, we need to referenceMemberAccessor.executeGetter(Object)
in a way so that the method reference stays the same instance. This method returns just such a method reference.- Specified by:
getGetterFunction
in interfaceMemberAccessor
- Returns:
- never null, a constant reference to
MemberAccessor.executeGetter(Object)
-