Lines Matching refs:CLOSED
17 import static com.google.common.collect.BoundType.CLOSED;
63 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, OPEN);
72 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, OPEN, i, CLOSED);
81 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, CLOSED);
89 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 3, CLOSED, 3, CLOSED);
100 || (ORDERING.compare(i, 3) == 0 && lBoundType == CLOSED), range.contains(i));
113 || (ORDERING.compare(i, 3) == 0 && lBoundType == CLOSED), range.contains(i));
134 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 2, CLOSED, 4, OPEN);
136 range.intersect(GeneralRange.range(ORDERING, 2, OPEN, 4, CLOSED)));
140 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 2, CLOSED, 4, OPEN);
142 assertEquals(GeneralRange.range(ORDERING, 2, CLOSED, 4, OPEN),
143 range.intersect(GeneralRange.range(ORDERING, null, OPEN, 5, CLOSED)));
146 range.intersect(GeneralRange.range(ORDERING, 2, OPEN, 5, CLOSED)));
148 assertEquals(GeneralRange.range(ORDERING, 2, CLOSED, 4, OPEN),
154 assertEquals(GeneralRange.range(ORDERING, 3, CLOSED, 4, OPEN),
155 range.intersect(GeneralRange.range(ORDERING, 3, CLOSED, 4, CLOSED)));
159 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 2, OPEN, 4, CLOSED);
160 assertEquals(GeneralRange.range(ORDERING, 3, CLOSED, 4, CLOSED),
161 range.intersect(GeneralRange.range(ORDERING, 3, CLOSED, 5, CLOSED)));
167 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 2, OPEN, 4, CLOSED);
168 assertTrue(range.intersect(GeneralRange.range(ORDERING, 5, CLOSED, 6, CLOSED)).isEmpty());
197 assertEquals(GeneralRange.downTo(ORDERING.reverse(), 3, CLOSED),
198 GeneralRange.upTo(ORDERING, 3, CLOSED).reverse());
201 assertEquals(GeneralRange.range(ORDERING.reverse(), 5, OPEN, 3, CLOSED),
202 GeneralRange.range(ORDERING, 3, CLOSED, 5, OPEN).reverse());