org.sodatest.api.java
Class JavaParameterConverter

java.lang.Object
  extended by org.sodatest.api.java.JavaParameterConverter
Direct Known Subclasses:
JavaReportConverter, ReflectiveSodaEventForJava, SodaEventForJava

public abstract class JavaParameterConverter
extends Object

Abstract class for Java-based SodaEvents and SodaReports that provides helper methods for Java-Scala integration, especially around parameter conversion.


Constructor Summary
JavaParameterConverter()
           
 
Method Summary
protected  Map<String,String> convertParameters(scala.collection.immutable.Map<String,String> parameters)
          Converts a Scala Map of parameters to a Java map.
protected static
<T> List<T>
list(T... values)
          Creates and returns a new List containing the supplied values.
protected static
<T> scala.Option<T>
None()
          Returns the Scala None object, appropriately cast as necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaParameterConverter

public JavaParameterConverter()
Method Detail

convertParameters

protected Map<String,String> convertParameters(scala.collection.immutable.Map<String,String> parameters)
Converts a Scala Map of parameters to a Java map. Subclasses can override this method if they wish to use a different conversion.

Returns:
the contents of 'parameters' inserted into a Java map

None

protected static final <T> scala.Option<T> None()
Returns the Scala None object, appropriately cast as necessary.


list

protected static final <T> List<T> list(T... values)
Creates and returns a new List containing the supplied values. This method is just a static forwarder (i.e. a synonym) for Arrays.asList(T...)



Copyright © 2010-2011 Belmont Technology Pty Ltd. All Rights Reserved.