Home
last modified time | relevance | path

Searched refs:BoundType (Results 1 – 25 of 29) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
DCut.java46 abstract BoundType typeAsLowerBound(); in typeAsLowerBound()
47 abstract BoundType typeAsUpperBound(); in typeAsUpperBound()
49 abstract Cut<C> withLowerBoundType(BoundType boundType, DiscreteDomain<C> domain); in withLowerBoundType()
50 abstract Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain); in withUpperBoundType()
125 @Override BoundType typeAsLowerBound() { in typeAsLowerBound()
128 @Override BoundType typeAsUpperBound() { in typeAsUpperBound()
131 @Override Cut<Comparable<?>> withLowerBoundType(BoundType boundType, in withLowerBoundType()
135 @Override Cut<Comparable<?>> withUpperBoundType(BoundType boundType, in withUpperBoundType()
191 @Override BoundType typeAsLowerBound() { in typeAsLowerBound()
194 @Override BoundType typeAsUpperBound() { in typeAsUpperBound()
[all …]
DGeneralRange.java19 import static com.google.common.collect.BoundType.CLOSED;
20 import static com.google.common.collect.BoundType.OPEN;
47 BoundType lowerBoundType = range.hasLowerBound() ? range.lowerBoundType() : OPEN; in from()
51 BoundType upperBoundType = range.hasUpperBound() ? range.upperBoundType() : OPEN; in from()
68 BoundType boundType) { in downTo()
77 BoundType boundType) { in upTo()
86 BoundType lowerType, @Nullable T upper, BoundType upperType) { in range()
94 private final BoundType lowerBoundType;
98 private final BoundType upperBoundType;
101 @Nullable T lowerEndpoint, BoundType lowerBoundType, boolean hasUpperBound, in GeneralRange()
[all …]
DSortedMultisets.java51 return multiset().subMultiset(fromElement, BoundType.CLOSED, toElement, in subSet()
52 BoundType.OPEN).elementSet(); in subSet()
56 return multiset().headMultiset(toElement, BoundType.OPEN).elementSet(); in headSet()
60 return multiset().tailMultiset(fromElement, BoundType.CLOSED) in tailSet()
122 BoundType boundType) { in headMultiset()
128 BoundType fromBoundType, E toElement, BoundType toBoundType) { in subMultiset()
134 BoundType boundType) { in tailMultiset()
DSortedMultiset.java104 SortedMultiset<E> headMultiset(E upperBound, BoundType boundType); in headMultiset()
119 SortedMultiset<E> subMultiset(E lowerBound, BoundType lowerBoundType, in subMultiset()
120 E upperBound, BoundType upperBoundType); in subMultiset()
132 SortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType); in tailMultiset()
DRegularContiguousSet.java19 import static com.google.common.collect.BoundType.CLOSED;
46 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) in headSetImpl()
58 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), in subSetImpl()
59 toElement, BoundType.forBoolean(toInclusive))).asSet(domain); in subSetImpl()
64 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) in tailSetImpl()
148 @Override public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) { in range()
DRanges.java134 C lower, BoundType lowerType, C upper, BoundType upperType) { in range()
138 Cut<C> lowerBound = (lowerType == BoundType.OPEN) in range()
141 Cut<C> upperBound = (upperType == BoundType.OPEN) in range()
168 C endpoint, BoundType boundType) { in upTo()
200 C endpoint, BoundType boundType) { in downTo()
DBoundType.java29 public enum BoundType { enum
43 static BoundType forBoolean(boolean inclusive) { in forBoolean()
DEmptyImmutableSortedMultiset.java74 public ImmutableSortedMultiset<E> headMultiset(E upperBound, BoundType boundType) { in headMultiset()
81 public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { in tailMultiset()
DDescendingImmutableSortedMultiset.java73 public ImmutableSortedMultiset<E> headMultiset(E upperBound, BoundType boundType) { in headMultiset()
78 public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { in tailMultiset()
DEmptyContiguousSet.java57 @Override public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) { in range()
DContiguousSet.java110 public abstract Range<C> range(BoundType lowerBoundType, BoundType upperBoundType); in range()
DAbstractSortedMultiset.java105 public SortedMultiset<E> subMultiset(E fromElement, BoundType fromBoundType, E toElement,
106 BoundType toBoundType) {
DImmutableSortedMultiset.java400 public abstract ImmutableSortedMultiset<E> headMultiset(E upperBound, BoundType boundType); in headMultiset()
404 E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) { in subMultiset()
409 public abstract ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType); in tailMultiset()
DRegularImmutableSortedMultiset.java153 public ImmutableSortedMultiset<E> headMultiset(E upperBound, BoundType boundType) {
171 public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) {
DRange.java151 public BoundType lowerBoundType() { in lowerBoundType()
180 public BoundType upperBoundType() { in upperBoundType()
DMultisets.java260 public SortedMultiset<E> headMultiset(E upperBound, BoundType boundType) { in headMultiset()
267 E lowerBound, BoundType lowerBoundType, in subMultiset()
268 E upperBound, BoundType upperBoundType) { in subMultiset()
274 public SortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { in tailMultiset()
/external/guava/guava-tests/test/com/google/common/collect/
DGeneralRangeTest.java17 import static com.google.common.collect.BoundType.CLOSED;
18 import static com.google.common.collect.BoundType.OPEN;
43 for (BoundType lboundType : BoundType.values()) { in testCreateEmptyRangeFails()
44 for (BoundType uboundType : BoundType.values()) { in testCreateEmptyRangeFails()
97 for (BoundType lBoundType : BoundType.values()) { in testLowerRange()
110 for (BoundType lBoundType : BoundType.values()) {
123 for (BoundType lboundType : BoundType.values()) {
124 for (BoundType uboundType : BoundType.values()) {
178 for (BoundType endpointType : BoundType.values()) {
188 for (BoundType lowerType : BoundType.values()) {
[all …]
DBstRangeOpsTest.java17 import static com.google.common.collect.BoundType.CLOSED;
18 import static com.google.common.collect.BoundType.OPEN;
62 for (BoundType type : BoundType.values()) { in testCountInRangeLowerBound()
66 if (type == BoundType.OPEN) { in testCountInRangeLowerBound()
76 for (BoundType type : BoundType.values()) { in testCountInRangeUpperBound()
80 if (type == BoundType.CLOSED) { in testCountInRangeUpperBound()
91 for (BoundType lb : BoundType.values()) { in testCountInRangeBothBounds()
93 for (BoundType ub : BoundType.values()) { in testCountInRangeBothBounds()
94 if (i == j && lb == BoundType.OPEN && ub == BoundType.OPEN) { in testCountInRangeBothBounds()
100 if (lb == BoundType.OPEN) { in testCountInRangeBothBounds()
[all …]
DRangeNonGwtTest.java33 tester.setDefault(BoundType.class, BoundType.OPEN); in testNullPointers()
DRangesTest.java19 import static com.google.common.collect.BoundType.CLOSED;
20 import static com.google.common.collect.BoundType.OPEN;
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DRegularContiguousSet.java19 import static com.google.common.collect.BoundType.CLOSED;
44 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) in headSetImpl()
56 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), in subSetImpl()
57 toElement, BoundType.forBoolean(toInclusive))).asSet(domain); in subSetImpl()
62 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) in tailSetImpl()
146 @Override public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) { in range()
DEmptyContiguousSet.java55 @Override public Range<C> range(BoundType lowerBoundType, BoundType upperBoundType) { in range()
DTreeMultiset.java343 public SortedMultiset<E> headMultiset(E upperBound, BoundType boundType) { in headMultiset()
350 public SortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { in tailMultiset()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DSortedMultisetTestSuiteBuilder.java20 import com.google.common.collect.BoundType;
184 multiset.tailMultiset(firstInclusive, BoundType.CLOSED); in createSubMultisetSuite()
186 multiset = multiset.tailMultiset(firstExclusive, BoundType.OPEN); in createSubMultisetSuite()
190 multiset = multiset.headMultiset(lastInclusive, BoundType.CLOSED); in createSubMultisetSuite()
192 multiset = multiset.headMultiset(lastExclusive, BoundType.OPEN); in createSubMultisetSuite()
DMultisetNavigationTester.java17 import static com.google.common.collect.BoundType.CLOSED;
18 import static com.google.common.collect.BoundType.OPEN;
27 import com.google.common.collect.BoundType;
111 for (BoundType type : BoundType.values()) { in testEmptyMultisetNearby()

12