object Utils
- Alphabetic
- By Inheritance
- Utils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Closeable = AnyRef { def close(): Unit }
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def combine(errors1: Either[List[String], Boolean], errors2: Either[List[String], Boolean]*): Either[List[String], Boolean]
-
def
duplicates(values: List[String], errorMessage: String): Either[List[String], Boolean]
Utility to extract duplicates and their number of occurrences
Utility to extract duplicates and their number of occurrences
- values
: Liste of strings
- errorMessage
: Error Message that should contains placeholders for the value(%s) and number of occurrences (%d)
- returns
List of tuples contains for ea ch duplicate the number of occurrences
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def exceptionAsString(exception: Throwable): String
-
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 getDBDisposition(writeMode: WriteMode, hasMergeKeyDefined: Boolean): (String, String)
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadInstance[T](objectName: String): T
- def logException(logger: Logger, exception: Throwable): Unit
-
def
logFailure[T](attempt: Try[T], logger: Logger): Try[T]
If the provided
attemptis aSuccess[T], do nothing.If the provided
attemptis aSuccess[T], do nothing. If it is aFailure, then log the contained exception as a side effect and carry on- logger
the logger onto which to log results
- returns
the original
attemptwith no alteration (everything happens as a side effect)
-
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()
- def subst(value: String, params: Map[String, String]): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toMap(attributes: List[Attribute]): Map[String, Any]
-
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()
-
def
withResources[T <: Closeable, V](r: ⇒ T)(f: (T) ⇒ V): V
Handle tansparently autocloseable resources and correctly chain exceptions
Handle tansparently autocloseable resources and correctly chain exceptions
- T
: resource Type
- V
: Try bloc return type
- r
: the resource
- f
: the try bloc
- returns
: Try bloc return value