aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-query/src/main/java/tools/refinery/store/query/term/int_/IntExtremeValueAggregator.java
blob: d5a6add0e4e966afc81a9c01eba7fbb1c88ede66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package tools.refinery.store.query.term.int_;

import tools.refinery.store.query.term.ExtremeValueAggregator;

import java.util.Comparator;

public final class IntExtremeValueAggregator {
	public static final ExtremeValueAggregator<Integer> MINIMUM = new ExtremeValueAggregator<>(Integer.class,
			Integer.MAX_VALUE);

	public static final ExtremeValueAggregator<Integer> MAXIMUM = new ExtremeValueAggregator<>(Integer.class,
			Integer.MIN_VALUE, Comparator.reverseOrder());

	private IntExtremeValueAggregator() {
		throw new IllegalStateException("This is a static utility class and should not be instantiated directly");
	}
}