object Size
Companion object for Size
that provides implicit implementations for the following types:
scala.collection.GenTraversable
String
Array
java.util.Collection
java.util.Map
- arbitary object with a
size()
method that returnsInt
- arbitary object with a parameterless
size
method that returnsInt
- arbitary object with a
getSize()
method that returnsInt
- arbitary object with a parameterless
getSize
method that returnsInt
- arbitary object with a
size()
method that returnsLong
- arbitary object with a parameterless
size
method that returnsLong
- arbitary object with a
getSize()
method that returnsLong
- arbitary object with a parameterless
getSize
method that returnsLong
- Source
- Size.scala
- Alphabetic
- By Inheritance
- Size
- 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] )
-
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
-
implicit
def
sizeOfAnyRefWithGetSizeMethodForInt[T <: AnyRef { def getSize(): Int }]: Size[T]
Enable
Size
implementation for arbitary object withgetSize()
method that returnsInt
.Enable
Size
implementation for arbitary object withgetSize()
method that returnsInt
.- T
any type with
getSize()
method that returnsInt
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithGetSizeMethodForLong[T <: AnyRef { def getSize(): Long }]: Size[T]
Enable
Size
implementation for arbitary object withgetSize()
method that returnsLong
.Enable
Size
implementation for arbitary object withgetSize()
method that returnsLong
.- T
any type with
getSize()
method that returnsLong
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithParameterlessGetSizeMethodForInt[T <: AnyRef { def getSize: Int }]: Size[T]
Enable
Size
implementation for arbitary object with parameterlessgetSize
method that returnsInt
.Enable
Size
implementation for arbitary object with parameterlessgetSize
method that returnsInt
.- T
any type with parameterless
getSize
method that returnsInt
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithParameterlessGetSizeMethodForLong[T <: AnyRef { def getSize: Long }]: Size[T]
Enable
Size
implementation for arbitary object withgetSize
method that returnsLong
.Enable
Size
implementation for arbitary object withgetSize
method that returnsLong
.- T
any type with
getSize
method that returnsLong
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithParameterlessSizeMethodForInt[T <: AnyRef { def size: Int }]: Size[T]
Enable
Size
implementation for arbitary object with parameterlesssize
method that returnsInt
.Enable
Size
implementation for arbitary object with parameterlesssize
method that returnsInt
.- T
any type with parameterless
size
method that returnsInt
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithParameterlessSizeMethodForLong[T <: AnyRef { def size: Long }]: Size[T]
Enable
Size
implementation for arbitary object with parameterlesssize
method that returnsLong
.Enable
Size
implementation for arbitary object with parameterlesssize
method that returnsLong
.- T
any type with parameterless
size
method that returnsLong
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithSizeMethodForInt[T <: AnyRef { def size(): Int }]: Size[T]
Enable
Size
implementation for arbitary object withsize()
method that returnsInt
.Enable
Size
implementation for arbitary object withsize()
method that returnsInt
.- T
any type with
size()
method that returnsInt
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfAnyRefWithSizeMethodForLong[T <: AnyRef { def size(): Long }]: Size[T]
Enable
Size
implementation for arbitary object withsize()
method that returnsLong
.Enable
Size
implementation for arbitary object withsize()
method that returnsLong
.- T
any type with
size()
method that returnsLong
- returns
Size[T]
that supportsT
inhave size
syntax
-
implicit
def
sizeOfArray[E]: Size[Array[E]]
Enable
Size
implementation forArray
Enable
Size
implementation forArray
- E
the type of the element in the
Array
- returns
Size[Array[E]]
that supportsArray
inhave size
syntax
-
implicit
def
sizeOfGenTraversable[TRAV <: GenTraversable[_]]: Size[TRAV]
Enable
Size
implementation forscala.collection.GenTraversable
Enable
Size
implementation forscala.collection.GenTraversable
- TRAV
any subtype of
scala.collection.GenTraversable
- returns
Size[TRAV]
that supportsscala.collection.GenTraversable
inhave size
syntax
-
implicit
def
sizeOfJavaCollection[JCOL <: Collection[_]]: Size[JCOL]
Enable
Size
implementation forjava.util.Collection
Enable
Size
implementation forjava.util.Collection
- JCOL
any subtype of
java.util.Collection
- returns
Size[JCOL]
that supportsjava.util.Collection
inhave size
syntax
-
implicit
def
sizeOfJavaMap[JMAP <: Map[_, _]]: Size[JMAP]
Enable
Size
implementation forjava.util.Map
Enable
Size
implementation forjava.util.Map
- JMAP
any subtype of
java.util.Map
- returns
Size[JMAP]
that supportsjava.util.Map
inhave size
syntax
-
implicit
val
sizeOfString: Size[String]
Enable
Size
implementation forString
Enable
Size
implementation forString
- returns
Size[String]
that supportsString
inhave size
syntax
-
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( ... )