Class LookUpManager

    • Method Detail

      • resetWorkingObjects

        public void resetWorkingObjects​(Collection<Object> allFacts)
      • addWorkingObject

        public void addWorkingObject​(Object workingObject)
      • removeWorkingObject

        public void removeWorkingObject​(Object workingObject)
      • clearWorkingObjects

        public void clearWorkingObjects()
      • lookUpWorkingObject

        public <E> E lookUpWorkingObject​(E externalObject)
        Type Parameters:
        E - the object type
        Parameters:
        externalObject - sometimes null
        Returns:
        null if externalObject is null
        Throws:
        IllegalArgumentException - if there is no workingObject for externalObject, if it cannot be looked up or if the externalObject's class is not supported
        IllegalStateException - if it cannot be looked up
      • lookUpWorkingObjectOrReturnNull

        public <E> E lookUpWorkingObjectOrReturnNull​(E externalObject)
        Type Parameters:
        E - the object type
        Parameters:
        externalObject - sometimes null
        Returns:
        null if externalObject is null or if there is no workingObject for externalObject
        Throws:
        IllegalArgumentException - if it cannot be looked up or if the externalObject's class is not supported
        IllegalStateException - if it cannot be looked up