final class IdOps[A] extends AnyVal
- Source
- IdOps.scala
- Alphabetic
- By Inheritance
- IdOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new IdOps(self: A)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
??(d: ⇒ A)(implicit ev: <:<[Null, A]): A
Returns
self
if it is non-null, otherwise returnsd
. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
doWhile(f: (A) ⇒ A, p: (A) ⇒ Boolean): A
Repeatedly apply
f
, seeded withself
, checking after each iteration whether the predicatep
holds. -
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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.
- val self: A
- final def squared: (A, A)
-
def
toString(): String
- Definition Classes
- Any
-
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 liftself
intoF
with the provided scalaz.Applicative. -
final
def
whileDo(f: (A) ⇒ A, p: (A) ⇒ Boolean): A
Repeatedly apply
f
, seeded withself
, checking before each iteration whether the predicatep
holds. -
final
def
|>[B](f: (A) ⇒ B): B
Applies
self
to the provided function.Applies
self
to the provided function. The Thrush combinator. -
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
-
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
-
final
def
unsafeTap(f: (A) ⇒ Any): A
Applies
self
to the provide function for its side effect, and returnsself
.Applies
self
to the provide function for its side effect, and returnsself
. 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
-
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