/packages/apps/Email/emailcommon/src/org/apache/commons/io/comparator/ |
DefaultFileComparator.java | 17 package org.apache.commons.io.comparator;
21 import java.util.Comparator;
26 * This comparator can be used to sort lists or arrays of files
47 public class DefaultFileComparator implements Comparator<File>, Serializable {
49 /** Singleton default comparator instance */
50 public static final Comparator<File> DEFAULT_COMPARATOR = new DefaultFileComparator();
52 /** Singleton reverse default comparator instance */
53 public static final Comparator<File> DEFAULT_REVERSE = new ReverseComparator<File>(DEFAULT_COMPARATOR);
|
LastModifiedFileComparator.java | 17 package org.apache.commons.io.comparator;
21 import java.util.Comparator;
27 * This comparator can be used to sort lists or arrays of files
48 public class LastModifiedFileComparator implements Comparator<File>, Serializable {
50 /** Last modified comparator instance */
51 public static final Comparator<File> LASTMODIFIED_COMPARATOR = new LastModifiedFileComparator();
53 /** Reverse last modified comparator instance */
54 public static final Comparator<File> LASTMODIFIED_REVERSE = new ReverseComparator<File>(LASTMODIFIED_COMPARATOR);
|
ReverseComparator.java | 17 package org.apache.commons.io.comparator;
20 import java.util.Comparator;
24 * the delegate {@link Comparator}.
29 class ReverseComparator<T> implements Comparator<T>, Serializable {
31 private final Comparator<T> delegate;
34 * Construct an instance with the sepecified delegate {@link Comparator}.
36 * @param delegate The comparator to delegate to
38 public ReverseComparator(Comparator<T> delegate) {
40 throw new IllegalArgumentException("Delegate comparator is missing");
46 * Compare using the delegate Comparator, but reversing the result. [all...] |
ExtensionFileComparator.java | 17 package org.apache.commons.io.comparator;
21 import java.util.Comparator;
30 * This comparator can be used to sort lists or arrays of files
54 public class ExtensionFileComparator implements Comparator<File>, Serializable {
56 /** Case-sensitive extension comparator instance (see {@link IOCase#SENSITIVE}) */
57 public static final Comparator<File> EXTENSION_COMPARATOR = new ExtensionFileComparator();
59 /** Reverse case-sensitive extension comparator instance (see {@link IOCase#SENSITIVE}) */
60 public static final Comparator<File> EXTENSION_REVERSE = new ReverseComparator<File>(EXTENSION_COMPARATOR);
62 /** Case-insensitive extension comparator instance (see {@link IOCase#INSENSITIVE}) */
63 public static final Comparator<File> EXTENSION_INSENSITIVE_COMPARATOR = new ExtensionFileComparator(IOCase.INSENSITIVE); [all...] |
NameFileComparator.java | 17 package org.apache.commons.io.comparator;
21 import java.util.Comparator;
28 * This comparator can be used to sort lists or arrays of files
52 public class NameFileComparator implements Comparator<File>, Serializable {
54 /** Case-sensitive name comparator instance (see {@link IOCase#SENSITIVE}) */
55 public static final Comparator<File> NAME_COMPARATOR = new NameFileComparator();
57 /** Reverse case-sensitive name comparator instance (see {@link IOCase#SENSITIVE}) */
58 public static final Comparator<File> NAME_REVERSE = new ReverseComparator<File>(NAME_COMPARATOR);
60 /** Case-insensitive name comparator instance (see {@link IOCase#INSENSITIVE}) */
61 public static final Comparator<File> NAME_INSENSITIVE_COMPARATOR = new NameFileComparator(IOCase.INSENSITIVE); [all...] |
PathFileComparator.java | 17 package org.apache.commons.io.comparator;
21 import java.util.Comparator;
28 * This comparator can be used to sort lists or arrays of files
52 public class PathFileComparator implements Comparator<File>, Serializable {
54 /** Case-sensitive path comparator instance (see {@link IOCase#SENSITIVE}) */
55 public static final Comparator<File> PATH_COMPARATOR = new PathFileComparator();
57 /** Reverse case-sensitive path comparator instance (see {@link IOCase#SENSITIVE}) */
58 public static final Comparator<File> PATH_REVERSE = new ReverseComparator<File>(PATH_COMPARATOR);
60 /** Case-insensitive path comparator instance (see {@link IOCase#INSENSITIVE}) */
61 public static final Comparator<File> PATH_INSENSITIVE_COMPARATOR = new PathFileComparator(IOCase.INSENSITIVE); [all...] |
SizeFileComparator.java | 17 package org.apache.commons.io.comparator;
21 import java.util.Comparator;
29 * This comparator can be used to sort lists or arrays of files
52 public class SizeFileComparator implements Comparator<File>, Serializable {
54 /** Size comparator instance - directories are treated as zero size */
55 public static final Comparator<File> SIZE_COMPARATOR = new SizeFileComparator();
57 /** Reverse size comparator instance - directories are treated as zero size */
58 public static final Comparator<File> SIZE_REVERSE = new ReverseComparator<File>(SIZE_COMPARATOR);
61 * Size comparator instance which sums the size of a directory's contents
64 public static final Comparator<File> SIZE_SUMDIR_COMPARATOR = new SizeFileComparator(true); [all...] |
/external/guava/src/com/google/common/collect/ |
CompoundOrdering.java | 22 import java.util.Comparator; 28 final ImmutableList<Comparator<? super T>> comparators; 30 CompoundOrdering(Comparator<? super T> primary, 31 Comparator<? super T> secondary) { 33 = ImmutableList.<Comparator<? super T>>of(primary, secondary); 36 CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) { 40 CompoundOrdering(List<? extends Comparator<? super T>> comparators, 41 Comparator<? super T> lastComparator) { 42 this.comparators = new ImmutableList.Builder<Comparator<? super T>>() 47 for (Comparator<? super T> comparator : comparators) [all...] |
TreeMultimap.java | 26 import java.util.Comparator; 39 * Comparator#compare} instead of {@link Object#equals} to determine 48 * through the keys according to the key comparator ordering or the natural 51 * to the value comparator ordering or the natural ordering of the values. The 73 private transient Comparator<? super K> keyComparator; 74 private transient Comparator<? super V> valueComparator; 88 * Neither comparator may be null; use {@link Ordering#natural()} to specify 91 * @param keyComparator the comparator that determines the key ordering 92 * @param valueComparator the comparator that determines the value ordering 95 Comparator<? super K> keyComparator [all...] |
/external/emma/core/java12/com/vladium/emma/report/ |
ItemComparator.java | 11 import java.util.Comparator; 18 interface ItemComparator extends Comparator 40 final Comparator [] comparators = new Comparator [attributeIDsWithDir.length >> 1]; 45 final Comparator comparator = IItemAttribute.Factory.getAttribute (attributeID, unitsID).comparator (); local 46 comparators [a >> 1] = attributeIDsWithDir [a + 1] < 0 ? new ReverseComparator (comparator) : comparator; 70 ReverseComparator (final Comparator comparator [all...] |
/libcore/luni/src/main/java/java/util/ |
Comparator.java | 21 * A {@code Comparator} is used to compare two objects to determine their ordering with 22 * respect to each other. On a given {@code Collection}, a {@code Comparator} can be used to 23 * obtain a sorted {@code Collection} which is <i>totally ordered</i>. For a {@code Comparator} 26 * holds true. It is recommended that a {@code Comparator} implements 31 public interface Comparator<T> { 58 * Compares this {@code Comparator} with the specified {@code Object} and indicates whether they 62 * A {@code Comparator} never needs to override this method, but may choose so for 66 * the {@code Object} to compare with this comparator.
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/ |
MessageDateComparator.java | 19 import java.util.Comparator; 21 public class MessageDateComparator implements Comparator<Message> {
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/ |
sort.h | 59 typename Comparator, typename Parallelism> 62 Comparator comp, Parallelism parallelism); 69 * @param comp Comparator. 72 template<bool stable, typename RandomAccessIterator, typename Comparator> 75 Comparator comp, multiway_mergesort_tag parallelism) 92 * @param comp Comparator. 95 template<bool stable, typename RandomAccessIterator, typename Comparator> 98 Comparator comp, multiway_mergesort_exact_tag parallelism) 111 * @param comp Comparator. 114 template<bool stable, typename RandomAccessIterator, typename Comparator> [all...] |
multiway_merge.h | 60 template<typename RandomAccessIterator, typename Comparator> 64 // the user-defined comparator might not be const. 65 template<typename RandomAccessIterator, typename Comparator> 67 operator<(guarded_iterator<RandomAccessIterator, Comparator>& bi1, 68 guarded_iterator<RandomAccessIterator, Comparator>& bi2); 70 template<typename RandomAccessIterator, typename Comparator> 72 operator<=(guarded_iterator<RandomAccessIterator, Comparator>& bi1, 73 guarded_iterator<RandomAccessIterator, Comparator>& bi2); 83 template<typename RandomAccessIterator, typename Comparator> 93 /** @brief Comparator. * [all...] |
losertree.h | 54 * @param Comparator the comparator to use, defaults to std::less<T> 56 template<typename T, typename Comparator> 79 /** @brief Comparator to use. */ 80 Comparator comp; 94 * @param _comp The comparator to use. 96 LoserTreeBase(unsigned int _k, Comparator _comp) 164 template<bool stable/* default == true */, typename T, typename Comparator> 165 class LoserTree : public LoserTreeBase<T, Comparator> 167 typedef LoserTreeBase<T, Comparator> Base [all...] |
checkers.h | 45 * @param comp Comparator. 48 // XXX Comparator default template argument 49 template<typename InputIterator, typename Comparator> 52 Comparator comp 83 * @param comp Comparator. 86 // XXX Comparator default template argument 87 template<typename InputIterator, typename Comparator> 91 Comparator comp 123 * @param comp Comparator. 126 template<typename InputIterator, typename Comparator> [all...] |
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
HasCoverage.java | 19 import java.util.Comparator; 26 class CoverageComparator implements Comparator<HasCoverage> {
|
/cts/tools/signature-tools/src/signature/io/html/ |
ClassByNameComparator.java | 21 import java.util.Comparator; 24 Comparator<IClassDefinitionDelta> {
|
PackageByNameComparator.java | 22 import java.util.Comparator; 24 public class PackageByNameComparator implements Comparator<IPackageDelta> {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/ |
AttributeSortOrder.java | 25 import java.util.Comparator; 40 public Comparator<Attr> getAttributeComparator() { 52 /** Comparator which can be used to sort attributes in the coding style priority order */ 53 private static final Comparator<Attr> SORTED_ORDER_COMPARATOR = new Comparator<Attr>() { 72 * Comparator which can be used to "sort" attributes into their existing source order 75 private static final Comparator<Attr> EXISTING_ORDER_COMPARATOR = new Comparator<Attr>() { 85 * Comparator which can be used to sort attributes into alphabetical order (but xmlns 88 private static final Comparator<Attr> ALPHABETICAL_COMPARATOR = new Comparator<Attr>() [all...] |
/external/easymock/src/org/easymock/internal/matchers/ |
Compare.java | 19 import java.util.Comparator;
30 private Comparator<? super T> comparator;
field in class:Compare 34 public Compare(T expected, Comparator<? super T> comparator, LogicalOperator result) {
36 this.comparator = comparator;
41 buffer.append(comparator + "(" + expected + ") " + operator.getSymbol()
50 return operator.matchResult(comparator.compare((T) actual, expected));
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
UserDictionaryToolsListEN.java | 22 import java.util.Comparator; 64 @Override protected Comparator<WnnWord> getComparator() { 68 /** Comparator class for sorting the list of English user dictionary */ 69 protected class ListComparatorEN implements Comparator<WnnWord>{
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
UserDictionaryToolsListJAJP.java | 22 import java.util.Comparator; 61 @Override protected Comparator<WnnWord> getComparator() { 65 /** Comparator class for sorting the list of Japanese user dictionary */ 66 protected class ListComparatorJAJP implements Comparator<WnnWord>{
|
/external/apache-http/src/org/apache/commons/codec/ |
StringEncoderComparator.java | 19 import java.util.Comparator; 22 * Strings are comparable, and this comparator allows 24 * which implements StringEncoder. This comparator 33 public class StringEncoderComparator implements Comparator { 58 * strings using the StringEncoder this Comparator
|
/external/apache-http/src/org/apache/http/cookie/ |
CookieIdentityComparator.java | 35 import java.util.Comparator; 38 * This cookie comparator can be used to compare identity of cookies. 47 public class CookieIdentityComparator implements Serializable, Comparator<Cookie> {
|