object System extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- System
- Serializable
- Serializable
- 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
- val any: ZLayer[System, Nothing, System]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
env(variable: ⇒ String)(implicit trace: ZTraceElement): ZIO[System, SecurityException, Option[String]]
Retrieves the value of an environment variable.
-
def
envOrElse(variable: ⇒ String, alt: ⇒ String)(implicit trace: ZTraceElement): ZIO[System, SecurityException, String]
Retrieves the value of an environment variable or else returns the specified fallback value.
-
def
envOrOption(variable: ⇒ String, alt: ⇒ Option[String])(implicit trace: ZTraceElement): ZIO[System, SecurityException, Option[String]]
Retrieves the value of an environment variable or else returns the specified optional fallback value.
-
def
envs(implicit trace: ZTraceElement): ZIO[System, SecurityException, Map[String, String]]
Retrieves the values of all environment variables.
-
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
-
def
lineSeparator(implicit trace: ZTraceElement): URIO[System, String]
Retrieves the value of the system-specific line separator.
- val live: Layer[Nothing, System]
-
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()
- lazy val os: OS
-
def
properties(implicit trace: ZTraceElement): ZIO[System, Throwable, Map[String, String]]
Retrieves the values of all system properties.
-
def
property(prop: ⇒ String)(implicit trace: ZTraceElement): ZIO[System, Throwable, Option[String]]
Retrieves the value of a system property.
-
def
propertyOrElse(prop: ⇒ String, alt: ⇒ String)(implicit trace: ZTraceElement): RIO[System, String]
Retrieves the value of a system property or else return the specified fallback value.
-
def
propertyOrOption(prop: ⇒ String, alt: ⇒ Option[String])(implicit trace: ZTraceElement): ZIO[System, Throwable, Option[String]]
Retrieves the value of a system property or else return the specified optional fallback value.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
- object OS
- object SystemLive extends System