com.nrinaudo.fetch

Parameters

trait Parameters[Self <: Parameters[Self]] extends AnyRef

Stores a list of name / value pairs.

Values are stored in their serialized forms as String, but can be manipulated as more specific types provided corresponding instances of ValueReader and ValueWriter are in scope. Default implementations of these can be found in ValueFormat.

Self

Self Type
Self
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Parameters
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def build(values: Map[String, String]): Self

    Creates a new instance of Parameters with the specified values.

  2. abstract val values: Map[String, String]

    Where the parameter and their values are stored.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply[T](name: String)(implicit arg0: ValueReader[T]): T

    Returns the value of the requested parameter.

    Returns the value of the requested parameter.

    This method is unsafe: it will throw an exception if the requested parameter is either absent or not found. For safer alternatives, see Parameters.get and Parameters.getOpt.

    T

    type of the parameter to retrieve. An implicit instance of ValueReader for this type is required to be in scope.

    name

    name of the parameter to retrieve.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def contains(name: String): Boolean

    Checks whether the current instance contains a parameter with the specified name.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(p1: Any): Boolean

    Definition Classes
    Parameters → AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get[T](name: String)(implicit arg0: ValueReader[T]): Option[Try[T]]

    Returns the value of the requested parameter.

    Returns the value of the requested parameter.

    This method differentiates between an absent parameter (None) and one with an illegal value (Some(Failure)). If that distinction is not necessary, used Parameters.getOpt instead.

    T

    type of the parameter to retrieve. An implicit instance of ValueReader for this type is required to be in scope.

    name

    name of the parameter to retrieve.

    returns

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getOpt[T](name: String)(implicit arg0: ValueReader[T]): Option[T]

    Returns the value of the requested parameter.

    Returns the value of the requested parameter.

    This method does not differentiate between an absent parameter and one with an illegal value: both cases will return None. If the distinction is important, use the Parameters.get method.

    T

    type of the parameter to retrieve. An implicit instance of ValueReader for this type is required to be in scope.

    name

    name of the parameter to retrieve.

  16. def hashCode(): Int

    Definition Classes
    Parameters → AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def remove(name: String): Self

    Removes the specified parameter if it exists.

    Removes the specified parameter if it exists. Otherwise, does nothing.

    name

    name of the parameter to remove.

  22. def set(name: String, value: String): Self

  23. def set[T](name: String, value: T)(implicit arg0: ValueWriter[T]): Self

    Sets the specified parameter to the specified value.

    Sets the specified parameter to the specified value.

    T

    type of the parameter. An implicit instance of ValueWriter for this type is required to be in scope.

    name

    name of the parameter.

    value

    value of the parameter.

  24. def setIfEmpty[T](name: String, value: T)(implicit arg0: ValueWriter[T]): Self

    Sets the specified parameter to the specified value if it does not exist.

    Sets the specified parameter to the specified value if it does not exist. Otherwise, does nothing.

    T

    type of the parameter. An implicit instance of ValueWriter for this type is required to be in scope.

    name

    name of the parameter to set.

    value

    desired value.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    Parameters → AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped