m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/pl/edu/mimuw/cloudatlas/model/TestUtil.java
blob: ddc61a98305066a94cf892324b232b7b6f5309bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package pl.edu.mimuw.cloudatlas.model;

public class TestUtil {
    public static <T> int iterableSize(Iterable<T> iterable) {
        int count = 0;
        for (T attribute : iterable) {
            count++;
        }

        return count;
    }
}