/external/replicaisland/src/com/replica/replicaisland/ |
ShellSorter.java | 19 import java.util.Comparator; 30 public void sort(Type[] array, int count, Comparator<Type> comparator) { 36 insertionSort(array, count, start, increment, comparator); 44 insertionSort(array, count, 0, 1, comparator ); 59 Comparator<Type> comparator) { 67 int delta = comparator.compare(array[j], array[k]); 77 } while ( j != start && comparator.compare(array[k], temp) > 0 );
|
/frameworks/volley/src/com/android/volley/toolbox/ |
ByteArrayPool.java | 21 import java.util.Comparator; 69 protected static final Comparator<byte[]> BUF_COMPARATOR = new Comparator<byte[]>() {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MediaSetUtils.java | 26 import java.util.Comparator; 29 public static final Comparator<MediaSet> NAME_COMPARATOR = new NameComparator(); 58 public static class NameComparator implements Comparator<MediaSet> {
|
/external/guava/guava/src/com/google/common/collect/ |
ImmutableSortedMultiset.java | 26 import java.util.Comparator; 32 * are ordered by an explicit comparator, while others follow the natural sort ordering of their 50 * are equivalent. Instead, with an explicit comparator, the following relation determines whether 55 * {(x, y) | comparator.compare(x, y) == 0}}</pre> 79 private static final Comparator<Comparable> NATURAL_ORDER = Ordering.natural(); 181 * comparator, call {@link #copyOfSorted} instead. This method iterates over {@code elements} at 228 * Comparator}. 230 * @throws NullPointerException if {@code comparator} or any of {@code elements} is null 233 Comparator<? super E> comparator, Iterator<? extends E> elements) 270 Comparator<? super E> comparator = sortedMultiset.comparator(); local 322 private final transient Comparator<? super E> comparator; field in class:ImmutableSortedMultiset 329 public Comparator<? super E> comparator() { method in class:ImmutableSortedMultiset 467 private final Comparator<? super E> comparator; field in class:ImmutableSortedMultiset.Builder 574 Comparator comparator; field in class:ImmutableSortedMultiset.SerializedForm [all...] |
ImmutableSortedSet.java | 31 import java.util.Comparator; 40 * Some instances are ordered by an explicit comparator, while others follow the 61 * two elements are equivalent. Instead, with an explicit comparator, the 65 * {(x, y) | comparator.compare(x, y) == 0}}</pre> 92 private static final Comparator<Comparable> NATURAL_ORDER = 104 Comparator<? super E> comparator) { 105 if (NATURAL_ORDER.equals(comparator)) { 108 return new EmptyImmutableSortedSet<E>(comparator); 217 * copy of a {@code SortedSet} that preserves the comparator, call {@lin 383 Comparator<? super E> comparator = sortedSet.comparator(); local 477 private final Comparator<? super E> comparator; field in class:ImmutableSortedSet.Builder 564 final transient Comparator<? super E> comparator; field in class:ImmutableSortedSet 578 public Comparator<? super E> comparator() { method in class:ImmutableSortedSet 674 final Comparator<? super E> comparator; field in class:ImmutableSortedSet.SerializedForm [all...] |
AbstractSortedMultiset.java | 21 import java.util.Comparator; 36 final Comparator<? super E> comparator; field in class:AbstractSortedMultiset 41 this((Comparator) Ordering.natural()); 44 AbstractSortedMultiset(Comparator<? super E> comparator) { 45 this.comparator = checkNotNull(comparator); 64 public Comparator<? super E> comparator() { [all...] |
TreeBasedTable.java | 28 import java.util.Comparator; 76 private final Comparator<? super C> columnComparator; 80 final Comparator<? super C> comparator; field in class:TreeBasedTable.Factory 81 Factory(Comparator<? super C> comparator) { 82 this.comparator = comparator; 86 return new TreeMap<C, V>(comparator); 110 * @param rowComparator the comparator that orders the row key 192 @Override public Comparator<? super C> comparator() { method in class:TreeBasedTable.TreeRow 341 final Comparator<? super C> comparator = columnComparator(); local [all...] |
ForwardingSortedMap.java | 22 import java.util.Comparator; 43 * comparator of the map to test equality for both keys and values, unlike 65 public Comparator<? super K> comparator() { method in class:ForwardingSortedMap 66 return delegate().comparator(); 97 Comparator<? super K> comparator = comparator(); local 98 if (comparator == null) { 101 return ((Comparator<Object>) comparator).compare(k1, k2) [all...] |
ForwardingSortedSet.java | 22 import java.util.Comparator; 43 * comparator (or the natural ordering of the elements, if there is no 44 * comparator) to test element equality. As a result, if the comparator is not 66 public Comparator<? super E> comparator() { method in class:ForwardingSortedSet 67 return delegate().comparator(); 98 Comparator<? super E> comparator = comparator(); local [all...] |
SortedIterables.java | 26 import java.util.Comparator; 43 * to {@code comparator}. 45 public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) { 46 checkNotNull(comparator); 48 Comparator<?> comparator2; 51 comparator2 = sortedSet.comparator(); 53 comparator2 = (Comparator) Ordering.natural(); 56 comparator2 = ((SortedIterable<?>) elements).comparator(); 60 return comparator.equals(comparator2) [all...] |
SortedLists.java | 24 import java.util.Comparator; 34 * <i>lesser</i> are considered to refer to the comparator on the elements, and the terms 56 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { 66 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { 74 int c = comparator.compare(list.get(middle), key); 90 Comparator<? super E> comparator, E key, List<? extends E> list, int foundIndex) { 99 int c = comparator.compare(list.get(middle), key) [all...] |
ImmutableSortedMap.java | 33 import java.util.Comparator; 71 private static final Comparator<Comparable> NATURAL_ORDER = 83 // unsafe, comparator() returns a comparator on the specified type 84 // TODO(kevinb): evaluate whether or not of().comparator() should return null 91 Comparator<? super K> comparator) { 92 if (NATURAL_ORDER.equals(comparator)) { 96 ImmutableList.<Entry<K, V>>of(), comparator); 189 * keys sorted by the provided comparator 217 Comparator<? super K> comparator = map.comparator(); local 352 private final Comparator<? super K> comparator; field in class:ImmutableSortedMap.Builder 414 private final transient Comparator<? super K> comparator; field in class:ImmutableSortedMap [all...] |
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/ |
Property.java | 18 import java.util.Comparator; 212 public static final Comparator<Property> ALPHABETICAL = new Comparator<Property>() { 220 public static final Comparator<Property> PRIORITY = new Comparator<Property>() {
|
/external/guava/guava/src/com/google/common/primitives/ |
UnsignedBytes.java | 32 import java.util.Comparator; 180 * Returns a comparator that compares two {@code byte} arrays 187 * <p>The returned comparator is inconsistent with {@link 195 public static Comparator<byte[]> lexicographicalComparator() { 200 static Comparator<byte[]> lexicographicalComparatorJavaImpl() { 205 * Provides a lexicographical comparator implementation; either a Java 218 static final Comparator<byte[]> BEST_COMPARATOR = lexicographicalComparatorJavaImpl(); 221 // enum UnsafeComparator implements Comparator<byte[]> { 334 enum PureJavaComparator implements Comparator<byte[]> { 352 // * Returns the Unsafe-using Comparator, or falls back to the pure-Jav [all...] |
SignedBytes.java | 24 import java.util.Comparator; 156 * Returns a comparator that compares two {@code byte} arrays 163 * <p>The returned comparator is inconsistent with {@link 171 public static Comparator<byte[]> lexicographicalComparator() { 175 private enum LexicographicalComparator implements Comparator<byte[]> {
|
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
SortUtil.java | 35 import java.util.Comparator; 76 public static void gsort(Object[] a, Comparator comp) { 119 private static void test(Float[] original, Float[] sorted, Comparator<Float> ic) { 156 Comparator<Float> ic = new Comparator<Float>() { 173 * Quick sorts the supplied array using the specified comparator. 175 public static void qsort(Object[] a, Comparator comp) { 180 * Quick sorts the supplied array using the specified comparator. 186 public static void qsort(Object[] a, int lo0, int hi0, Comparator comp) { 243 public static void qsort(int[] a, int lo0, int hi0, Comparator comp) [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/ |
quicksort.h | 43 * @param comp Comparator. 49 template<typename RandomAccessIterator, typename Comparator> 53 Comparator comp, typename std::iterator_traits 82 __gnu_parallel::binder2nd<Comparator, value_type, value_type, bool> 95 * @param comp Comparator. 99 template<typename RandomAccessIterator, typename Comparator> 103 Comparator comp, 151 * @param comp Comparator. 155 template<typename RandomAccessIterator, typename Comparator> 159 Comparator comp [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableSortedSet.java | 25 import java.util.Comparator; 51 private static final Comparator NATURAL_ORDER = Ordering.natural(); 63 Comparator<? super E> comparator) { 64 checkNotNull(comparator); 65 if (NATURAL_ORDER.equals(comparator)) { 68 return new EmptyImmutableSortedSet<E>(comparator); 124 Comparator<? super E> comparator, E... elements) { 128 return emptySet(comparator); 179 Comparator<? super E> comparator = sortedSet.comparator(); local 258 public Comparator<? super E> comparator() { method in class:ImmutableSortedSet 383 private final Comparator<? super E> comparator; field in class:ImmutableSortedSet.Builder [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/ |
JsDocValidator.java | 9 import java.util.Comparator; 19 private static final Comparator<ValidatorContext> VALIDATOR_CONTEXT_COMPARATOR = 20 new Comparator<ValidatorContext>() {
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
skiplist_test.cc | 17 struct Comparator { 33 Comparator cmp; 34 SkipList<Key, Comparator> list(cmp, &arena); 37 SkipList<Key, Comparator>::Iterator iter(&list); 53 Comparator cmp; 54 SkipList<Key, Comparator> list(cmp, &arena); 72 SkipList<Key, Comparator>::Iterator iter(&list); 90 SkipList<Key, Comparator>::Iterator iter(&list); 110 SkipList<Key, Comparator>::Iterator iter(&list); 211 SkipList<Key, Comparator> list_ [all...] |
/frameworks/base/core/java/android/gesture/ |
InstanceLearner.java | 21 import java.util.Comparator; 29 private static final Comparator<Prediction> sComparator = new Comparator<Prediction>() {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
EclipseXmlFormatPreferences.java | 34 import java.util.Comparator; 66 public Comparator<Attr> getAttributeComparator() { 75 private static final Comparator<Attr> EXISTING_ORDER_COMPARATOR = new Comparator<Attr>() {
|
/art/compiler/utils/ |
dedupe_set.h | 32 class Comparator { 41 typedef std::set<HashedKey, Comparator> Keys;
|
/external/apache-http/src/org/apache/http/impl/client/ |
BasicCookieStore.java | 35 import java.util.Comparator; 62 private final Comparator<Cookie> cookieComparator;
|
/external/emma/core/java12/com/vladium/emma/report/ |
IItemAttribute.java | 14 import java.util.Comparator; 43 Comparator /* IItem */ comparator (); method in interface:IItemAttribute 89 public Comparator comparator () method in class:IItemAttribute.Factory.NameAttribute 105 private static final class NameComparator implements Comparator 125 private final Comparator m_comparator; 133 public Comparator comparator () method in class:IItemAttribute.Factory.FractionAttribute 173 private final class FractionComparator implements Comparator [all...] |