Trait/Object

com.netaporter.uri

Parameters

Related Docs: object Parameters | package uri

Permalink

trait Parameters extends AnyRef

Trait use to represent a list of key value parameters, such as query string parameters

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
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Self <: Parameters

    Permalink

Abstract Value Members

  1. abstract def params: ParamSeq

    Permalink
  2. abstract def separator: String

    Permalink
  3. abstract def withParams(params: ParamSeq): Self

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addParam(kv: Param): Self

    Permalink
  5. def addParam(k: String): Self

    Permalink

    Adds a new parameter key with no value.

    Adds a new parameter key with no value. If the value for the parameter is None, then this parameter will not be rendered

    returns

    A new instance with the new parameter added

  6. def addParam(k: String, v: Option[String]): Self

    Permalink

    Adds a new parameter key-value pair.

    Adds a new parameter key-value pair. If the value for the parameter is None, then this parameter will be rendered without an = sign (use Some("") if this is not what you want).

    returns

    A new instance with the new parameter added

  7. def addParam(k: String, v: String): Self

    Permalink

    Adds a new parameter key-value pair.

    Adds a new parameter key-value pair.

    returns

    A new instance with the new parameter added

  8. def addParams(kvs: ParamSeq): Self

    Permalink
  9. def addParams(other: Parameters): Self

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def filterParams(f: (Param) ⇒ Boolean): Self

    Permalink

    Filters out just the parameters for which the provided function holds true

  15. def filterParamsNames(f: (String) ⇒ Boolean): Self

    Permalink

    Filters out just the parameters for which the provided function holds true when applied to the parameter name

  16. def filterParamsOptions(f: (Option[String]) ⇒ Boolean): Self

    Permalink

    Filters out just the parameters for which the provided function holds true when applied to the parameter value

  17. def filterParamsValues(f: (String) ⇒ Boolean): Self

    Permalink

    Filters out just the parameters for which the provided function holds true when applied to the parameter value

  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMapParams(f: (Param) ⇒ GenTraversableOnce[Param]): Self

    Permalink

    Transforms each parameter by applying the specified Function

    Transforms each parameter by applying the specified Function

    f

    A function that returns a collection of Parameters when applied to each parameter

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def mapParamNames(f: (String) ⇒ String): Self

    Permalink

    Transforms each parameter name by applying the specified Function

  24. def mapParamValues(f: (String) ⇒ String): Self

    Permalink

    Transforms each parameter value by applying the specified Function

  25. def mapParams(f: (Param) ⇒ Param): Self

    Permalink

    Transforms each parameter by applying the specified Function

  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def param(key: String): Option[String]

    Permalink
  30. lazy val paramMap: Map[String, Seq[String]]

    Permalink
  31. def params(key: String): Seq[Option[String]]

    Permalink
  32. def paramsToString(e: UriEncoder, charset: String): String

    Permalink
  33. def removeAll(): Self

    Permalink
  34. def removeAll(a: Seq[String]): Self

    Permalink
  35. def removeAll(k: String): Self

    Permalink

    Removes all Query String parameters with the specified key

    Removes all Query String parameters with the specified key

    k

    Key for the Query String parameter(s) to remove

  36. def replaceAll(k: String, vOpt: Option[Any]): Self

    Permalink

    Replaces the all existing Query String parameters with the specified key with a single Query String parameter with the specified value.

    Replaces the all existing Query String parameters with the specified key with a single Query String parameter with the specified value.

    k

    Key for the Query String parameter(s) to replace

    vOpt

    value to replace with

    returns

    A new QueryString with the result of the replace

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

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped