Readability

Companion object for Readability that provides implicit implementations for the following types:

  • java.io.File

  • arbitary object with a isReadable() method that returns Boolean

  • arbitary object with a parameterless isReadable method that returns Boolean

Companion:
class
class Object
trait Matchable
class Any

Implicits

Implicits

implicit def readabilityOfAnyRefWithIsReadableMethod[T <: AnyRef { def isReadable(): Boolean; }]: Readability[T]

Enable Readability implementation for any arbitrary object with a isReadable() method that returns Boolean

Enable Readability implementation for any arbitrary object with a isReadable() method that returns Boolean

Type parameters:
T

any type that has a isReadable() method that returns Boolean

Returns:

Readability[T] that supports T in be readable syntax

implicit def readabilityOfAnyRefWithParameterlessIsReadableMethod[T <: AnyRef { def isReadable: Boolean; }]: Readability[T]

Enable Readability implementation for any arbitrary object with a parameterless isReadable method that returns Boolean

Enable Readability implementation for any arbitrary object with a parameterless isReadable method that returns Boolean

Type parameters:
T

any type that has a parameterless isReadable method that returns Boolean

Returns:

Readability[T] that supports T in be readable syntax

implicit def readabilityOfFile[FILE <: File]: Readability[FILE]

Enable Readability implementation for java.io.File.

Enable Readability implementation for java.io.File.

Type parameters:
FILE

any subtype of java.io.File

Returns:

Readability[FILE] that supports java.io.File in be readable syntax