blob: 0fef6b4ddb6aeb20df826d58f9fd2742c85201c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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;
}
public static ValueTime addToTime(ValueTime time, long millis) {
return time.addValue(new ValueDuration(millis));
}
}
|