コード例 #1
0
ファイル: TruncatedIterable.java プロジェクト: maladat/drjava
 public int size(int bound) {
   return IterUtil.sizeOf(_iterable, _size <= bound ? _size : bound);
 }
コード例 #2
0
ファイル: TruncatedIterable.java プロジェクト: maladat/drjava
 /**
  * Return {@code size}, unless the nested iterable is smaller than {@code size}; in that case,
  * returns the iterable's size.
  */
 public int size() {
   return IterUtil.sizeOf(_iterable, _size);
 }