Class ValueRecorder


  • public class ValueRecorder
    extends java.lang.Object
    Records the values in a condition.
    Author:
    Peter Niederwieser
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REALIZE_NAS  
      static java.lang.String RECORD  
      static java.lang.String RESET  
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueRecorder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Object> getValues()  
      java.lang.Object realizeNas​(int index, java.lang.Object value)
      Materializes N/A values without recording a new value.
      java.lang.Object record​(int index, java.lang.Object value)
      Records and returns the specified value.
      ValueRecorder reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueRecorder

        public ValueRecorder()
    • Method Detail

      • record

        public java.lang.Object record​(int index,
                                       java.lang.Object value)
        Records and returns the specified value. Hence an expression can be replaced with record(expression) without impacting evaluation of the expression.
      • realizeNas

        public java.lang.Object realizeNas​(int index,
                                           java.lang.Object value)
        Materializes N/A values without recording a new value.
      • getValues

        public java.util.List<java.lang.Object> getValues()