object ConfigConvert extends ConvertHelpers
Provides methods to create ConfigConvert instances.
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
- Alphabetic
- By Inheritance
- ConfigConvert
- ConvertHelpers
- AnyRef
- Any
- Hide All
- Show All
- 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
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- implicit def fromReaderAndWriter[T](implicit reader: ConfigReader[T], writer: ConfigWriter[T]): ConfigConvert[T]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
Deprecated Value Members
-
def
apply[T](implicit conv: ConfigConvert[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
catchReadError[T](f: (String) ⇒ T)(implicit ct: ClassTag[T]): (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[CannotConvert, T]
- Definition Classes
- ConvertHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
combineResults[A, B, C](first: Either[ConfigReaderFailures, A], second: Either[ConfigReaderFailures, B])(f: (A, B) ⇒ C): Either[ConfigReaderFailures, C]
- Definition Classes
- ConvertHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
fail[A](failure: ConfigReaderFailure): Either[ConfigReaderFailures, A]
- Definition Classes
- ConvertHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
failWithThrowable[A](throwable: Throwable): (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailures, A]
- Definition Classes
- ConvertHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
fromNonEmptyString[T](fromF: (String) ⇒ Try[T])(implicit ct: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) The usage of Try has been deprecated. Please use ConfigReader.fromNonEmptyString instead
-
def
fromNonEmptyStringConvert[T](fromF: (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailure, T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use viaNonEmptyString instead
-
def
fromNonEmptyStringConvertOpt[T](fromF: (String) ⇒ Option[T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use viaNonEmptyStringOpt instead
-
def
fromNonEmptyStringConvertTry[T](fromF: (String) ⇒ Try[T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use viaNonEmptyStringTry instead
-
def
fromNonEmptyStringReader[T](fromF: (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailure, T])(implicit arg0: ClassTag[T]): ConfigReader[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use ConfigReader.fromNonEmptyString instead
-
def
fromNonEmptyStringReaderOpt[T](fromF: (String) ⇒ Option[T])(implicit arg0: ClassTag[T]): ConfigReader[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use ConfigReader.fromNonEmptyStringOpt instead
-
def
fromNonEmptyStringReaderTry[T](fromF: (String) ⇒ Try[T])(implicit arg0: ClassTag[T]): ConfigReader[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use ConfigReader.fromNonEmptyStringTry instead
-
def
fromString[T](fromF: (String) ⇒ Try[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) The usage of Try has been deprecated. Please use ConfigReader.fromString instead
-
def
fromStringConvert[T](fromF: (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailure, T], toF: (T) ⇒ String): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use viaString instead
-
def
fromStringConvertOpt[T](fromF: (String) ⇒ Option[T], toF: (T) ⇒ String)(implicit ct: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use viaStringOpt instead
-
def
fromStringConvertTry[T](fromF: (String) ⇒ Try[T], toF: (T) ⇒ String)(implicit ct: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use viaStringTry instead
-
def
fromStringReader[T](fromF: (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailure, T]): ConfigReader[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use ConfigReader.fromString instead
-
def
fromStringReaderOpt[T](fromF: (String) ⇒ Option[T])(implicit ct: ClassTag[T]): ConfigReader[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use ConfigReader.fromStringOpt instead
-
def
fromStringReaderTry[T](fromF: (String) ⇒ Try[T])(implicit ct: ClassTag[T]): ConfigReader[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) Please use ConfigReader.fromStringTry instead
-
def
nonEmptyStringConvert[T](fromF: (String) ⇒ Try[T], toF: (T) ⇒ String)(implicit ct: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) The usage of Try has been deprecated. Please use viaNonEmptyString instead
-
def
optF[T](f: (String) ⇒ Option[T])(implicit ct: ClassTag[T]): (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[CannotConvert, T]
Convert a
String => Option
into aString => Option[ConfigValueLocation] => Either
such that after application -Some(t)
becomes_ => Right(t)
-None
becomeslocation => Left(CannotConvert(value, type, "", location)
Convert a
String => Option
into aString => Option[ConfigValueLocation] => Either
such that after application -Some(t)
becomes_ => Right(t)
-None
becomeslocation => Left(CannotConvert(value, type, "", location)
- Definition Classes
- ConvertHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
stringConvert[T](fromF: (String) ⇒ Try[T], toF: (T) ⇒ String): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) The usage of Try has been deprecated. Please use viaString instead
-
def
tryF[T](f: (String) ⇒ Try[T])(implicit ct: ClassTag[T]): (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[CannotConvert, T]
Convert a
String => Try
into aString => Option[ConfigValueLocation] => Either
such that after application -Success(t)
becomes_ => Right(t)
-Failure(e)
becomeslocation => Left(CannotConvert(value, type, e.getMessage, location)
Convert a
String => Try
into aString => Option[ConfigValueLocation] => Either
such that after application -Success(t)
becomes_ => Right(t)
-Failure(e)
becomeslocation => Left(CannotConvert(value, type, e.getMessage, location)
- Definition Classes
- ConvertHelpers
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
viaNonEmptyString[T](fromF: (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailure, T], toF: (T) ⇒ String)(implicit ct: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
viaNonEmptyStringOpt[T](fromF: (String) ⇒ Option[T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
viaNonEmptyStringTry[T](fromF: (String) ⇒ Try[T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
viaString[T](fromF: (String) ⇒ (Option[ConfigValueLocation]) ⇒ Either[ConfigReaderFailure, T], toF: (T) ⇒ String): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
viaStringOpt[T](fromF: (String) ⇒ Option[T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
-
def
viaStringTry[T](fromF: (String) ⇒ Try[T], toF: (T) ⇒ String)(implicit arg0: ClassTag[T]): ConfigConvert[T]
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig