Class AbstractMemberAccessor
- java.lang.Object
-
- org.optaplanner.core.impl.domain.common.accessor.AbstractMemberAccessor
-
- All Implemented Interfaces:
MemberAccessor
- Direct Known Subclasses:
AbstractGizmoMemberAccessor
,ReflectionBeanPropertyMemberAccessor
,ReflectionFieldMemberAccessor
,ReflectionMethodMemberAccessor
public abstract class AbstractMemberAccessor extends Object implements MemberAccessor
-
-
Constructor Summary
Constructors Constructor Description AbstractMemberAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Fact_,Result_>
Function<Fact_,Result_>getGetterFunction()
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
-
-
-
-
Method Detail
-
getGetterFunction
public final <Fact_,Result_> Function<Fact_,Result_> 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)
-
-