Packages

final class IdOps[A] extends AnyVal

Source
IdOps.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IdOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IdOps(self: A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def ??(d: ⇒ A)(implicit ev: <:<[Null, A]): A

    Returns self if it is non-null, otherwise returns d.

  5. def ?|>(p: (A) ⇒ Boolean, f: (A) ⇒ A): A

    Applies self to the provided function if the predicate is satisfied, otherwise return self.

    Applies self to the provided function if the predicate is satisfied, otherwise return self.

    Annotations
    @inline()
  6. def applyIf(p: (A) ⇒ Boolean)(f: (A) ⇒ A): A

    Applies self to the provided function if the predicate is satisfied, otherwise return self.

    Applies self to the provided function if the predicate is satisfied, otherwise return self.

    Annotations
    @inline()
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def doWhile(f: (A) ⇒ A, p: (A) ⇒ Boolean): A

    Repeatedly apply f, seeded with self, checking after each iteration whether the predicate p holds.

  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. final def into[B](f: (A) ⇒ B): B

    Alternative syntax for the Thrush combinator or a total match.

    Alternative syntax for the Thrush combinator or a total match.

    Annotations
    @inline()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def matchOrZero[B](pf: PartialFunction[A, B])(implicit arg0: Monoid[B]): B

    returns

    the result of pf(value) if defined, otherwise the Zero element of type B.

  13. val self: A
  14. final def squared: (A, A)
  15. def toString(): String
    Definition Classes
    Any
  16. def visit[F[_]](p: PartialFunction[A, F[A]])(implicit arg0: Applicative[F]): F[A]

    If the provided partial function is defined for self run this, otherwise lift self into F with the provided scalaz.Applicative.

  17. final def whileDo(f: (A) ⇒ A, p: (A) ⇒ Boolean): A

    Repeatedly apply f, seeded with self, checking before each iteration whether the predicate p holds.

  18. final def |>[B](f: (A) ⇒ B): B

    Applies self to the provided function.

    Applies self to the provided function. The Thrush combinator.

  19. final def [B](f: (A) ⇒ B): B

    Applies self to the provided function.

    Applies self to the provided function. The Thrush combinator.

Deprecated Value Members

  1. final def <|(f: (A) ⇒ Any): A

    Alias for unsafeTap.

    Alias for unsafeTap.

    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) will be removed in 7.3

  2. final def unsafeTap(f: (A) ⇒ Any): A

    Applies self to the provide function for its side effect, and returns self.

    Applies self to the provide function for its side effect, and returns self. The Kestrel combinator. Mostly for use with dodgy libraries that give you values that need additional initialization or mutation before they're valid to use.

    The name tap comes from the Ruby method: http://ruby-doc.org/core-2.0.0/Object.html#method-i-tap which allows you to "tap into" a method call chain, in order to perform operations on intermediate results within the chain. unsafe because it enables side effects.

    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) will be removed in 7.3

  3. final def (f: (A) ⇒ Any): A

    Alias for unsafeTap.

    Alias for unsafeTap.

    Annotations
    @deprecated
    Deprecated

    (Since version 7.2) will be removed in 7.3

Inherited from AnyVal

Inherited from Any

Ungrouped