Home
last modified time | relevance | path

Searched refs:Cut (Results 1 – 25 of 62) sorted by relevance

123

/external/guava/guava/src/com/google/common/collect/
DTreeRangeSet.java47 @VisibleForTesting final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound;
51 return new TreeRangeSet<C>(new TreeMap<Cut<C>, Range<C>>()); in create()
76 private TreeRangeSet(NavigableMap<Cut<C>, Range<C>> rangesByLowerCut) { in TreeRangeSet()
124 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(Cut.belowValue(value)); in rangeContaining()
136 Entry<Cut<C>, Range<C>> ceilingEntry = rangesByLowerBound.ceilingEntry(range.lowerBound); in intersects()
142 Entry<Cut<C>, Range<C>> priorEntry = rangesByLowerBound.lowerEntry(range.lowerBound); in intersects()
151 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(range.lowerBound); in encloses()
157 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(range.lowerBound); in rangeEnclosing()
165 Entry<Cut<C>, Range<C>> firstEntry = rangesByLowerBound.firstEntry(); in span()
166 Entry<Cut<C>, Range<C>> lastEntry = rangesByLowerBound.lastEntry(); in span()
[all …]
DRange.java122 static class LowerBoundFn implements Function<Range, Cut> {
126 public Cut apply(Range range) { in apply()
131 static class UpperBoundFn implements Function<Range, Cut> {
135 public Cut apply(Range range) { in apply()
141 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> lowerBoundFn() { in lowerBoundFn()
146 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> upperBoundFn() { in upperBoundFn()
154 static <C extends Comparable<?>> Range<C> create(Cut<C> lowerBound, Cut<C> upperBound) { in create()
168 return create(Cut.aboveValue(lower), Cut.belowValue(upper)); in open()
180 return create(Cut.belowValue(lower), Cut.aboveValue(upper)); in closed()
192 return create(Cut.belowValue(lower), Cut.belowValue(upper)); in closedOpen()
[all …]
DCut.java35 abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable { class
38 Cut(@Nullable C endpoint) { in Cut() method in Cut
48 abstract Cut<C> withLowerBoundType(BoundType boundType, DiscreteDomain<C> domain); in withLowerBoundType()
50 abstract Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain); in withUpperBoundType()
64 Cut<C> canonical(DiscreteDomain<C> domain) { in canonical()
70 public int compareTo(Cut<C> that) { in compareTo()
92 if (obj instanceof Cut) { in equals()
94 Cut<C> that = (Cut<C>) obj; in equals()
113 static <C extends Comparable> Cut<C> belowAll() { in belowAll()
114 return (Cut<C>) BelowAll.INSTANCE; in belowAll()
[all …]
DTreeRangeMap.java55 private final NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound;
70 RangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) { in RangeMapEntry()
93 Cut<K> getLowerBound() { in getLowerBound()
97 Cut<K> getUpperBound() { in getUpperBound()
110 Entry<Cut<K>, RangeMapEntry<K, V>> mapEntry = in getEntry()
111 entriesByLowerBound.floorEntry(Cut.belowValue(key)); in getEntry()
143 Entry<Cut<K>, RangeMapEntry<K, V>> lowerEntry = in coalescedRange()
147 Entry<Cut<K>, RangeMapEntry<K, V>> higherEntry = in coalescedRange()
156 Range<K> range, V value, @Nullable Entry<Cut<K>, RangeMapEntry<K, V>> entry) { in coalesce()
179 Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry(); in span()
[all …]
DImmutableRangeSet.java190 Cut.belowValue(value), in rangeContaining()
336 Cut<C> lowerBound; in get()
338 lowerBound = (index == 0) ? Cut.<C>belowAll() : ranges.get(index - 1).upperBound; in get()
343 Cut<C> upperBound; in get()
345 upperBound = Cut.<C>aboveAll(); in get()
/external/guava/android/guava/src/com/google/common/collect/
DTreeRangeSet.java47 @VisibleForTesting final NavigableMap<Cut<C>, Range<C>> rangesByLowerBound;
51 return new TreeRangeSet<C>(new TreeMap<Cut<C>, Range<C>>()); in create()
76 private TreeRangeSet(NavigableMap<Cut<C>, Range<C>> rangesByLowerCut) { in TreeRangeSet()
125 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(Cut.belowValue(value)); in rangeContaining()
137 Entry<Cut<C>, Range<C>> ceilingEntry = rangesByLowerBound.ceilingEntry(range.lowerBound); in intersects()
143 Entry<Cut<C>, Range<C>> priorEntry = rangesByLowerBound.lowerEntry(range.lowerBound); in intersects()
152 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(range.lowerBound); in encloses()
159 Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(range.lowerBound); in rangeEnclosing()
167 Entry<Cut<C>, Range<C>> firstEntry = rangesByLowerBound.firstEntry(); in span()
168 Entry<Cut<C>, Range<C>> lastEntry = rangesByLowerBound.lastEntry(); in span()
[all …]
DRange.java122 static class LowerBoundFn implements Function<Range, Cut> {
126 public Cut apply(Range range) { in apply()
131 static class UpperBoundFn implements Function<Range, Cut> {
135 public Cut apply(Range range) { in apply()
141 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> lowerBoundFn() { in lowerBoundFn()
146 static <C extends Comparable<?>> Function<Range<C>, Cut<C>> upperBoundFn() { in upperBoundFn()
154 static <C extends Comparable<?>> Range<C> create(Cut<C> lowerBound, Cut<C> upperBound) { in create()
168 return create(Cut.aboveValue(lower), Cut.belowValue(upper)); in open()
180 return create(Cut.belowValue(lower), Cut.aboveValue(upper)); in closed()
192 return create(Cut.belowValue(lower), Cut.belowValue(upper)); in closedOpen()
[all …]
DCut.java35 abstract class Cut<C extends Comparable> implements Comparable<Cut<C>>, Serializable { class
38 Cut(@NullableDecl C endpoint) { in Cut() method in Cut
48 abstract Cut<C> withLowerBoundType(BoundType boundType, DiscreteDomain<C> domain); in withLowerBoundType()
50 abstract Cut<C> withUpperBoundType(BoundType boundType, DiscreteDomain<C> domain); in withUpperBoundType()
64 Cut<C> canonical(DiscreteDomain<C> domain) { in canonical()
70 public int compareTo(Cut<C> that) { in compareTo()
92 if (obj instanceof Cut) { in equals()
94 Cut<C> that = (Cut<C>) obj; in equals()
113 static <C extends Comparable> Cut<C> belowAll() { in belowAll()
114 return (Cut<C>) BelowAll.INSTANCE; in belowAll()
[all …]
DTreeRangeMap.java55 private final NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound;
70 RangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) { in RangeMapEntry()
93 Cut<K> getLowerBound() { in getLowerBound()
97 Cut<K> getUpperBound() { in getUpperBound()
112 Entry<Cut<K>, RangeMapEntry<K, V>> mapEntry = in getEntry()
113 entriesByLowerBound.floorEntry(Cut.belowValue(key)); in getEntry()
145 Entry<Cut<K>, RangeMapEntry<K, V>> lowerEntry = in coalescedRange()
149 Entry<Cut<K>, RangeMapEntry<K, V>> higherEntry = in coalescedRange()
158 Range<K> range, V value, @NullableDecl Entry<Cut<K>, RangeMapEntry<K, V>> entry) { in coalesce()
181 Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry(); in span()
[all …]
DImmutableRangeSet.java177 Cut.belowValue(value), in rangeContaining()
323 Cut<C> lowerBound; in get()
325 lowerBound = (index == 0) ? Cut.<C>belowAll() : ranges.get(index - 1).upperBound; in get()
330 Cut<C> upperBound; in get()
332 upperBound = Cut.<C>aboveAll(); in get()
DImmutableRangeMap.java156 Cut.belowValue(key), in get()
174 Cut.belowValue(key), in getEntry()
/external/guava/guava-gwt/src/com/google/common/collect/
DRange_CustomFieldSerializer.java35 Cut lowerBound; in instantiate()
41 lowerBound = lowerIsClosed ? Cut.belowValue(lower) : Cut.aboveValue(lower); in instantiate()
43 lowerBound = Cut.belowAll(); in instantiate()
46 Cut upperBound; in instantiate()
52 upperBound = upperIsClosed ? Cut.aboveValue(upper) : Cut.belowValue(upper); in instantiate()
54 upperBound = Cut.aboveAll(); in instantiate()
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/annotated_symbol/
Dfunction_definition.py45 def Cut(self, child): member in Function
46 self.suite.Cut(child)
Dclass_definition.py45 def Cut(self, child): member in Class
46 self.suite.Cut(child)
Dbase_symbol.py29 def Cut(self, child): member in AnnotatedSymbol
/external/guava/guava-tests/test/com/google/common/collect/
DTreeRangeSetTest.java86 private static final ImmutableList<Cut<Integer>> CUTS_TO_TEST;
89 List<Cut<Integer>> cutsToTest = Lists.newArrayList();
91 cutsToTest.add(Cut.belowValue(i)); in Cut.belowValue()
92 cutsToTest.add(Cut.aboveValue(i)); in Cut.aboveValue()
94 cutsToTest.add(Cut.<Integer>aboveAll()); in aboveAll()
95 cutsToTest.add(Cut.<Integer>belowAll()); in belowAll()
101 NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByLowerBound = Maps.newTreeMap(); in testRangesByLowerBounds()
106 NavigableMap<Cut<Integer>, Range<Integer>> rangesByLowerBound = rangeSet.rangesByLowerBound; in testRangesByLowerBounds()
336 NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByUpperBound = Maps.newTreeMap(); in testRangesByUpperBound()
DRangeTest.java281 Cut<Integer> a = Range.lessThan(0).lowerBound; in testOrderingCuts()
282 Cut<Integer> b = Range.atLeast(0).lowerBound; in testOrderingCuts()
283 Cut<Integer> c = Range.greaterThan(0).lowerBound; in testOrderingCuts()
284 Cut<Integer> d = Range.atLeast(1).lowerBound; in testOrderingCuts()
285 Cut<Integer> e = Range.greaterThan(1).lowerBound; in testOrderingCuts()
286 Cut<Integer> f = Range.greaterThan(1).upperBound; in testOrderingCuts()
/external/guava/android/guava-tests/test/com/google/common/collect/
DTreeRangeSetTest.java86 private static final ImmutableList<Cut<Integer>> CUTS_TO_TEST;
89 List<Cut<Integer>> cutsToTest = Lists.newArrayList();
91 cutsToTest.add(Cut.belowValue(i)); in Cut.belowValue()
92 cutsToTest.add(Cut.aboveValue(i)); in Cut.aboveValue()
94 cutsToTest.add(Cut.<Integer>aboveAll()); in aboveAll()
95 cutsToTest.add(Cut.<Integer>belowAll()); in belowAll()
101 NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByLowerBound = Maps.newTreeMap(); in testRangesByLowerBounds()
106 NavigableMap<Cut<Integer>, Range<Integer>> rangesByLowerBound = rangeSet.rangesByLowerBound; in testRangesByLowerBounds()
336 NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByUpperBound = Maps.newTreeMap(); in testRangesByUpperBound()
DRangeTest.java281 Cut<Integer> a = Range.lessThan(0).lowerBound; in testOrderingCuts()
282 Cut<Integer> b = Range.atLeast(0).lowerBound; in testOrderingCuts()
283 Cut<Integer> c = Range.greaterThan(0).lowerBound; in testOrderingCuts()
284 Cut<Integer> d = Range.atLeast(1).lowerBound; in testOrderingCuts()
285 Cut<Integer> e = Range.greaterThan(1).lowerBound; in testOrderingCuts()
286 Cut<Integer> f = Range.greaterThan(1).upperBound; in testOrderingCuts()
/external/pdfium/xfa/fxfa/
Dcxfa_ffdatetimeedit.cpp258 Optional<WideString> CXFA_FFDateTimeEdit::Cut() { in Cut() function in CXFA_FFDateTimeEdit
259 return GetPickerWidget()->Cut(); in Cut()
Dcxfa_ffdatetimeedit.h49 Optional<WideString> Cut() override;
Dcxfa_fftextedit.h56 Optional<WideString> Cut() override;
Dcxfa_ffcombobox.h39 Optional<WideString> Cut() override;
Dcxfa_fftextedit.cpp419 Optional<WideString> CXFA_FFTextEdit::Cut() { in Cut() function in CXFA_FFTextEdit
420 return ToEdit(GetNormalWidget())->Cut(); in Cut()
/external/pdfium/xfa/fwl/
Dcfwl_datetimepicker.h63 Optional<WideString> Cut();

123