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
. -
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()
-
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()
-
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
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()
-
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.
- 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.