object Secret
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Secret
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
apply[A](value: A)(implicit show: Show[A]): Secret[A]
Returns a new Secret for the specified configuration value.
Returns a new Secret for the specified configuration value.
The Secret#valueHash will be calculated using the shown value.
scala> import cats.implicits._ import cats.implicits._ scala> Secret(12.5) res0: Secret[Double] = Secret(90db4c0)
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit final def secretEq[A](implicit eq: Eq[A]): Eq[Secret[A]]
- implicit final def secretShow[A]: Show[Secret[A]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
unapply[A](secret: Secret[A]): Some[A]
Returns the configuration value for the specified Secret.
Returns the configuration value for the specified Secret.
This function enables pattern matching on Secrets.
scala> import cats.implicits._ import cats.implicits._ scala> val secret = Secret(12.5) secret: Secret[Double] = Secret(90db4c0) scala> secret match { case Secret(value) => value } res0: Double = 12.5
Example: -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()