01: package org.garret.rdf;
02:
03: /**
04: * Class used to represent range of property values for search queries
05: */
06: public class Range {
07: /**
08: * Low boundary
09: */
10: public final Object from;
11:
12: /**
13: * Whether low boundary is inclusive or exclusive
14: */
15: public final boolean fromInclusive;
16:
17: /**
18: * High boundary
19: */
20: public final Object till;
21:
22: /**
23: * Whether high boundary is inclusive or exclusive
24: */
25: public final boolean tillInclusive;
26:
27: /**
28: * Range constructor
29: *
30: * @param from low boundary
31: * @param fromInclusive is low boundary inclusive or exclusive
32: * @param till high boundary
33: * @param tillInclusive is high boundary inclusive or exclusive
34: */
35: public Range(Object from, boolean fromInclusive, Object till,
36: boolean tillInclusive) {
37: this.from = from;
38: this.fromInclusive = fromInclusive;
39: this.till = till;
40: this.tillInclusive = tillInclusive;
41: }
42: }
|