Class LambdaReadAccessor

  • All Implemented Interfaces:
    Externalizable, Serializable, org.drools.core.spi.InternalReadAccessor, org.drools.core.spi.ReadAccessor

    public class LambdaReadAccessor
    extends org.drools.core.base.extractors.BaseObjectClassFieldReader
    implements org.drools.core.spi.InternalReadAccessor
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LambdaReadAccessor​(int index, Class<?> fieldType, org.drools.model.functions.Function1 lambda)  
      LambdaReadAccessor​(Class<?> fieldType, org.drools.model.functions.Function1 lambda)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object o)  
      Object getValue​(org.drools.core.common.InternalWorkingMemory workingMemory, Object object)  
      int hashCode()  
      • Methods inherited from class org.drools.core.base.extractors.BaseObjectClassFieldReader

        getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getHashCode, getIntValue, getLongValue, getNativeReadMethod, getNativeReadMethodName, getShortValue, isNullValue
      • Methods inherited from class org.drools.core.base.BaseClassFieldReader

        getBigDecimalValue, getBigDecimalValue, getBigIntegerValue, getBigIntegerValue, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getExtractToClass, getExtractToClassName, getFloatValue, getHashCode, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValueType, isGlobal, isNullValue, isSelfReference, readExternal, setFieldType, setIndex, setValueType, writeExternal
      • Methods inherited from interface org.drools.core.spi.InternalReadAccessor

        getBigDecimalValue, getBigIntegerValue, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getHashCode, getIntValue, getLongValue, getShortValue, isGlobal, isNullValue, isSelfReference
      • Methods inherited from interface org.drools.core.spi.ReadAccessor

        getBigDecimalValue, getBigIntegerValue, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getExtractToClass, getExtractToClassName, getFloatValue, getHashCode, getIndex, getIntValue, getLongValue, getNativeReadMethod, getNativeReadMethodName, getShortValue, getValue, getValueType, isNullValue
    • Constructor Detail

      • LambdaReadAccessor

        public LambdaReadAccessor​(Class<?> fieldType,
                                  org.drools.model.functions.Function1 lambda)
      • LambdaReadAccessor

        public LambdaReadAccessor​(int index,
                                  Class<?> fieldType,
                                  org.drools.model.functions.Function1 lambda)
    • Method Detail

      • getValue

        public Object getValue​(org.drools.core.common.InternalWorkingMemory workingMemory,
                               Object object)
        Specified by:
        getValue in interface org.drools.core.spi.InternalReadAccessor
        Specified by:
        getValue in class org.drools.core.base.extractors.BaseObjectClassFieldReader
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class org.drools.core.base.BaseClassFieldReader
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.drools.core.base.BaseClassFieldReader