/external/guava/guava/src/com/google/common/collect/ |
ImmutableSortedAsList.java | 19 import java.util.Comparator; 40 @Override public Comparator<? super E> comparator() { method in class:ImmutableSortedAsList 41 return backingSet.comparator(); 65 backingList.subList(fromIndex, toIndex), backingSet.comparator())
|
RegularImmutableSortedSet.java | 31 import java.util.Comparator; 52 ImmutableList<E> elements, Comparator<? super E> comparator) { 53 super(comparator); 87 if (!SortedIterables.hasSameComparator(comparator(), targets) 93 * If targets is a sorted set with the same comparator, containsAll can run 133 // Pretend the comparator can compare anything. If it turns out it can't 137 Comparator<Object> unsafeComparator = (Comparator<Object>) comparator; [all...] |
ImmutableTable.java | 24 import java.util.Comparator; 150 private Comparator<? super R> rowComparator; 151 private Comparator<? super C> columnComparator; 162 public Builder<R, C, V> orderRowsBy(Comparator<? super R> rowComparator) { 171 Comparator<? super C> columnComparator) {
|
SortedMaps.java | 21 import java.util.Comparator; 153 * Computes the difference between two sorted maps, using the comparator of 160 * the right map must all compare as distinct according to the comparator 177 * Returns the specified comparator if not null; otherwise returns {@code 182 static <E> Comparator<? super E> orNaturalOrder( 183 @Nullable Comparator<? super E> comparator) { 184 if (comparator != null) { // can't use ? : because of javac bug 5080917 185 return comparator; 187 return (Comparator<E>) Ordering.natural() 339 @Override public Comparator<? super K> comparator() { method in class:SortedMaps.FilteredSortedMap [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
SetGenerators.java | 41 import java.util.Comparator; 126 private static final Comparator<String> STRING_REVERSED 144 private static final Comparator<Comparable<?>> COMPARABLE_REVERSED 192 Comparator<String> comparator = createExplicitComparator(elements); local 194 comparator, Arrays.asList(elements)); 202 Comparator<String> comparator = createExplicitComparator(elements); local 204 = ImmutableSortedSet.orderedBy(comparator); 216 Comparator<String> comparator = createExplicitComparator(elements) local 229 Comparator<String> comparator = createExplicitComparator(elements); local [all...] |
/external/junit/src/org/junit/runner/ |
Request.java | 3 import java.util.Comparator; 137 * <code>comparator</code> 142 private static Comparator<Description> forward() { 143 return new Comparator<Description>() { 155 * @param comparator definition of the order of the tests in this Request 158 public Request sortWith(Comparator<Description> comparator) { 159 return new SortingRequest(this, comparator);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
DummyMap.java | 5 import java.util.Comparator; 21 public Comparator<? super K> comparator() { method in class:DummyMap
|
/external/replicaisland/src/com/replica/replicaisland/ |
ChannelSystem.java | 19 import java.util.Comparator; 85 /** Comparator for channels. */ 86 private final static class ChannelComparator implements Comparator<Channel> {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ |
MediaSizeUtils.java | 23 import java.util.Comparator; 63 * Comparator for ordering standard media sizes. The ones for the current 67 public static final class MediaSizeComparator implements Comparator<MediaSize> {
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
Objects.java | 20 import java.util.Comparator; 37 public static <T> int compare(T a, T b, Comparator<? super T> c) {
|
/libcore/luni/src/main/java/libcore/util/ |
CollectionUtils.java | 22 import java.util.Comparator; 83 * not use {@link Object#equals}: only the comparator defines equality. 85 public static <T> void removeDuplicates(List<T> list, Comparator<? super T> comparator) { 86 Collections.sort(list, comparator); 89 if (comparator.compare(list.get(j - 1), list.get(i)) != 0) {
|
/packages/apps/Camera2/src/com/android/camera/data/ |
LocalData.java | 27 import java.util.Comparator; 170 static class NewestFirstComparator implements Comparator<LocalData> {
|
LocalDataList.java | 22 import java.util.Comparator; 86 public void sort(Comparator<LocalData> comparator) { 87 Collections.sort(mList, comparator);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
SafeTreeMap.java | 21 import java.util.Comparator; 39 private static final Comparator NATURAL_ORDER = new Comparator<Comparable>() { 50 public SafeTreeMap(Comparator<? super K> comparator) { 51 this(new TreeMap<K, V>(comparator)); 85 @Override public Comparator<? super K> comparator() { method in class:SafeTreeMap 86 Comparator<? super K> comparator = delegate.comparator() local [all...] |
SafeTreeSet.java | 21 import java.util.Comparator; 36 private static final Comparator NATURAL_ORDER = new Comparator<Comparable>() { 51 public SafeTreeSet(Comparator<? super E> comparator) { 52 this(new TreeSet<E>(comparator)); 86 @Override public Comparator<? super E> comparator() { method in class:SafeTreeSet 87 Comparator<? super E> comparator = delegate.comparator() local [all...] |
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestGrouping.java | 33 import java.util.Comparator; 53 public static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME 56 public static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME 62 public TestGrouping(Comparator<Class<? extends TestCase>> comparator) { 63 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); 100 return this.testCaseClasses.comparator().equals(other.testCaseClasses.comparator()); 188 implements Comparator<Class<? extends TestCase>>, Serializable { 205 implements Comparator<Class<? extends TestCase>>, Serializable [all...] |
/libcore/luni/src/main/java/java/util/ |
TreeSet.java | 29 * Comparator. 73 * specified comparator. 75 * @param comparator 76 * the comparator to use. 78 public TreeSet(Comparator<? super E> comparator) { 79 backingMap = new TreeMap<E, Object>(comparator); 84 * the specified SortedSet and using the same Comparator. 90 this(set.comparator()); 108 * when the object is null and the comparator cannot handl 175 public Comparator<? super E> comparator() { method in class:TreeSet [all...] |
PriorityQueue.java | 25 * according to their natural order or according to the comparator specified at 47 private Comparator<? super E> comparator; field in class:PriorityQueue 73 * Constructs a priority queue with the specified capacity and comparator. 77 * @param comparator 78 * the specified comparator. If it is null, the natural ordering 83 public PriorityQueue(int initialCapacity, Comparator<? super E> comparator) { 88 this.comparator = comparator; 229 public Comparator<? super E> comparator() { method in class:PriorityQueue [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/ |
partition.h | 326 * @param comp Comparator. 328 template<typename RandomAccessIterator, typename Comparator> 331 RandomAccessIterator end, Comparator comp) 358 // XXX Comparator must have first_value_type, second_value_type, 360 // Comparator == __gnu_parallel::lexicographic<S, int, 364 __gnu_parallel::binder2nd<Comparator, value_type, value_type, bool> 386 binder1st<Comparator, value_type, value_type, bool>, value_type> 387 pred(__gnu_parallel::binder1st<Comparator, value_type, 415 * @param comp Comparator. */ 416 template<typename RandomAccessIterator, typename Comparator> [all...] |
base.h | 157 // XXX comparator at the end, as per others 158 template<typename Comparator, typename T1, typename T2> 162 Comparator& comp; 165 equal_from_less(Comparator& _comp) : comp(_comp) { } 439 * @param comp Comparator. 441 template<typename RandomAccessIterator, typename Comparator> 444 RandomAccessIterator c, Comparator& comp)
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
RefSortedMap.java | 28 import java.util.Comparator; 88 private final Comparator<? super K> comparator; field in class:RefSortedMap 166 public Comparator<? super K> comparator() { 167 return RefSortedMap.this.comparator(); 241 this((Comparator<? super K>) null); 246 return comparator != null ? comparator.compare(start, end) 251 public RefSortedMap(Comparator<? super K> comparator) [all...] |
/external/chromium/base/ |
tracked_objects.cc | 179 Comparator comparator; local 180 comparator.ParseQuery(escaped_query); 186 if (comparator.Acceptable(*it)) 190 comparator.Sort(&match_array); 192 WriteHTMLTotalAndSubtotals(match_array, comparator, output); 194 comparator.Clear(); // Delete tiebreaker_ instances. 231 const Comparator& comparator, 247 if (0 == i || !comparator.Equivalent(match_array[i - 1] [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
ClassPathOpener.java | 28 import java.util.Comparator; 221 Arrays.sort(files, new Comparator<File>() { 253 Collections.sort(entriesList, new Comparator<ZipEntry>() {
|
/development/apps/Development/src/com/android/development/ |
AppHwConfigList.java | 37 import java.util.Comparator; 145 private final Comparator sDisplayNameComparator = new Comparator() {
|
RunningProcesses.java | 35 import java.util.Comparator; 136 private final Comparator sDisplayNameComparator = new Comparator() {
|