Class ListToSingleValueConverter

java.lang.Object
com.aquima.interactions.rule.graph.ListToSingleValueConverter
All Implemented Interfaces:
IValueConverter

public class ListToSingleValueConverter extends Object implements IValueConverter
This value converter converts a list value to a single value. The conversion might fail at runtime with a RuleEngineException.
Since:
6.1
Author:
O. Kerpershoek
  • Constructor Details

    • ListToSingleValueConverter

      protected ListToSingleValueConverter(IValueConverter converter)
  • Method Details

    • convert

      public SourcedValue convert(SourcedValue sourcedValue)
      Description copied from interface: IValueConverter
      This method performs the actual conversion and returns the result in the corrects type.
      Specified by:
      convert in interface IValueConverter
      Parameters:
      sourcedValue - The value that should be converted.
      Returns:
      The converted value of the correct type (never null).