Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbehave.core.steps
Interface Parameters

All Superinterfaces:
  Row

All Known Implementing Classes:
  ConvertedParameters

    public interface Parameters

extends Row

Provides parameter values as given types

Method Summary
`
`<T> T`
` | `valueAs(String name, Class<T> type)` Returns the value of a named parameter as a given type
`
`<T> T`
` | `valueAs(String name, Class<T> type, T defaultValue)` Returns the value of a named parameter as a given type while providing a default value if the name is not found

Methods inherited from interface org.jbehave.core.steps.Row
`values`

Method Detail

### valueAs

    <T> T valueAs(String name,
                  Class<T> type)

  Returns the value of a named parameter as a given type

  Parameters:
    `type` - the Class of type to convert to
    `name` - the name of the parameter
  Returns:
    The value of type

### valueAs

    <T> T valueAs(String name,
                  Class<T> type,
                  T defaultValue)

  Returns the value of a named parameter as a given type while providing a default value if the name is not found

  Parameters:
    `type` - Class of type to convert to
    `name` - the name of the parameter
    `defaultValue` - the default value if the name is not found
  Returns:
    The value of type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2013. All Rights Reserved.