sizeIs
方法(或屬性)屬於 scala.collection.immutable.MapOps.ImmutableKeySet
類(class),其相關用法說明如下。
用法:
@inline
final def sizeIs: SizeCompareOps
返回一個值類,其中包含用於將此可迭代集合的大小與測試值進行比較的操作。
這些操作是根據 sizeCompare(Int)
實現的,並允許以下更具可讀性的用法:
this.sizeIs < size // this.sizeCompare(size) < 0
this.sizeIs <= size // this.sizeCompare(size) <= 0
this.sizeIs == size // this.sizeCompare(size) == 0
this.sizeIs != size // this.sizeCompare(size) != 0
this.sizeIs >= size // this.sizeCompare(size) >= 0
this.sizeIs > size // this.sizeCompare(size) > 0
相關用法
- Scala ImmutableKeySet.sizeCompare用法及代碼示例
- Scala ImmutableKeySet.scanRight用法及代碼示例
- Scala ImmutableKeySet.sliding用法及代碼示例
- Scala ImmutableKeySet.tails用法及代碼示例
- Scala ImmutableKeySet.mkString用法及代碼示例
- Scala ImmutableKeySet.addString用法及代碼示例
- Scala ImmutableKeySet.inits用法及代碼示例
- Scala ImmutableKeySet.groupBy用法及代碼示例
- Scala ImmutableKeySet.groupMapReduce用法及代碼示例
- Scala ImmutableKeySet.equals用法及代碼示例
- Scala ImmutableKeySet.lazyZip用法及代碼示例
- Scala ImmutableKeySet.transpose用法及代碼示例
- Scala ImmutableKeySet.partitionMap用法及代碼示例
- Scala ImmutableKeySet.unzip3用法及代碼示例
- Scala ImmutableKeySet.unzip用法及代碼示例
- Scala ImmutableKeySet.collectFirst用法及代碼示例
- Scala ImmutableKeySet.groupMap用法及代碼示例
- Scala ImmutableKeySet.concat用法及代碼示例
- Scala ImmutableKeySortedSet.scanRight用法及代碼示例
- Scala ImmutableKeySortedSet.sizeCompare用法及代碼示例
- Scala ImmutableKeySortedSet.sizeIs用法及代碼示例
- Scala ImmutableKeySortedSet.groupMapReduce用法及代碼示例
- Scala ImmutableKeySortedSet.tails用法及代碼示例
- Scala ImmutableKeySortedSet.unzip用法及代碼示例
- Scala ImmutableKeySortedSet.inits用法及代碼示例
注:本文由純淨天空篩選整理自scala-lang.org大神的英文原創作品 ImmutableKeySet.sizeIs。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。