Searched defs:compare (Results 1 - 25 of 54) sorted by relevance

123

/libcore/ojluni/src/main/java/sun/security/util/
H A DByteArrayLexOrder.java40 * regarding each byte as unsigned. That is, compare array entries
45 * @param bytes1 first byte array to compare.
46 * @param bytes2 second byte array to compare.
53 public final int compare( byte[] bytes1, byte[] bytes2) { method in class:ByteArrayLexOrder
H A DByteArrayTagOrder.java42 * as defined in ITU-T X.680, sec. 6.4. (First compare
45 * @param bytes1 first byte array to compare.
46 * @param bytes2 second byte array to compare.
54 public final int compare(byte[] bytes1, byte[] bytes2) { method in class:ByteArrayTagOrder
/libcore/luni/src/test/java/libcore/java/util/
H A DOldPriorityQueueTest.java87 public int compare(String object1, String object2) { method in class:OldPriorityQueueTest.MockComparatorStringByLength
103 public int compare(E object1, E object2) { method in class:OldPriorityQueueTest.MockComparatorCast
H A DOldTreeMapTest.java36 public int compare(Object o1, Object o2) { method in class:OldTreeMapTest.ReversedComparator
49 public int compare(T o1, T o2) { method in class:OldTreeMapTest.MockComparator
65 public int compare(String o1, String o2) { method in class:OldTreeMapTest.MockComparatorNullTolerable
267 public int compare(String o1, String o2) {
332 * there's no other element to compare it to. This is more strict than the
/libcore/ojluni/src/main/java/java/text/
H A DRuleBasedCollator.java155 * This allows you to use a RuleBasedCollator to compare accented strings
258 // need to be preserved in these objects between calls to compare() or
260 // creation time. compare() and getCollationKey() are synchronized to ensure
362 public synchronized int compare(String source, String target) method in class:RuleBasedCollator
368 return icuColl.compare(source, target);
H A DCollator.java67 * The following example shows how to compare two strings using
73 * if( myCollator.compare("abc", "ABC") < 0 )
96 * if( usCollator.compare("abc", "ABC") == 0 ) {
102 * For comparing <code>String</code>s exactly once, the <code>compare</code>
104 * <code>String</code>s however, it is generally necessary to compare each
258 public abstract int compare(String source, String target); method in class:Collator
266 * <code> compare((String)o1, (String)o2) </code>.
276 public int compare(Object o1, Object o2) { method in class:Collator
277 return compare((String)o1, (String)o2);
283 * Collator.compare whe
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DASCIICaseInsensitiveComparator.java40 public int compare(String s1, String s2) { method in class:ASCIICaseInsensitiveComparator
60 * compare() method.
/libcore/ojluni/src/main/java/java/util/
H A DComparators.java51 public int compare(Comparable<Object> c1, Comparable<Object> c2) { method in class:Comparators.NaturalOrderComparator
77 public int compare(T a, T b) { method in class:Comparators.NullComparator
83 return (real == null) ? 0 : real.compare(a, b);
H A DComparator.java47 * <tt>c.compare(e1, e2)==0</tt> has the same boolean value as
61 * {@code (a.equals(b) && c.compare(a, b) != 0)}
78 * {(x, y) such that c.compare(x, y) &lt;= 0}.
80 * {(x, y) such that c.compare(x, y) == 0}.
83 * It follows immediately from the contract for <tt>compare</tt> that the
121 * The implementor must ensure that <tt>sgn(compare(x, y)) ==
122 * -sgn(compare(y, x))</tt> for all <tt>x</tt> and <tt>y</tt>. (This
123 * implies that <tt>compare(x, y)</tt> must throw an exception if and only
124 * if <tt>compare(y, x)</tt> throws an exception.)<p>
127 * <tt>((compare(
150 int compare(T o1, T o2); method in interface:Comparator
[all...]
H A DObjects.java164 * c.compare(a, b)} otherwise.
176 * @param c the {@code Comparator} to compare the first two arguments
178 * c.compare(a, b)} otherwise.
182 public static <T> int compare(T a, T b, Comparator<? super T> c) { method in class:Objects
183 return (a == b) ? 0 : c.compare(a, b);
/libcore/ojluni/src/main/java/java/lang/
H A DBoolean.java221 * @param obj the object to compare with.
273 return compare(this.value, b.value);
283 * @param x the first {@code boolean} to compare
284 * @param y the second {@code boolean} to compare
290 public static int compare(boolean x, boolean y) { method in class:Boolean
H A DByte.java415 * @param obj the object to compare with
440 return compare(this.value, anotherByte.value);
450 * @param x the first {@code byte} to compare
451 * @param y the second {@code byte} to compare
457 public static int compare(byte x, byte y) { method in class:Byte
H A DShort.java420 * @param obj the object to compare with
445 return compare(this.value, anotherShort.value);
455 * @param x the first {@code short} to compare
456 * @param y the second {@code short} to compare
462 public static int compare(short x, short y) { method in class:Short
/libcore/ojluni/src/main/java/java/net/
H A DCookieManager.java470 public int compare(HttpCookie c1, HttpCookie c2) { method in class:CookieManager.CookiePathComparator
/libcore/ojluni/src/main/java/sun/security/x509/
H A DCertificateVersion.java236 public int compare(int vers) { method in class:CertificateVersion
H A DRDN.java481 public int compare(AVA a1, AVA a2) { method in class:AVAComparator
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java65 + format.format(object), compare(results, expectedResults));
71 protected static boolean compare(Vector<FieldContainer> vector1, Vector<FieldContainer> vector2) { method in class:Support_Format
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DTreeSetTest.java37 public int compare(Object o1, Object o2) { method in class:TreeSetTest.ReversedIntegerComparator
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDuration.java57 * The {@link #compare(Duration duration)} method implements this
747 * @param duration to compare
762 public abstract int compare(final Duration duration); method in class:Duration
788 * @see #compare(Duration duration)
791 return compare(duration) == DatatypeConstants.GREATER;
810 * @see #compare(Duration duration)
813 return compare(duration) == DatatypeConstants.LESSER;
851 * @see #compare(Duration duration)
858 return compare((Duration) duration) == DatatypeConstants.EQUAL;
/libcore/ojluni/src/main/java/java/nio/
H A DDoubleBuffer.java772 * {@link Double#compare(double,double)}, except that
787 // Android-changed: Call through to Double.compare() instead of
789 int cmp = Double.compare(this.get(i), that.get(j));
796 private static int compare(double x, double y) { method in class:DoubleBuffer
H A DFloatBuffer.java772 * {@link Float#compare(float,float)}, except that
790 int cmp = compare(this.get(i), that.get(j));
797 private static int compare(float x, float y) { method in class:FloatBuffer
H A DIntBuffer.java780 * {@link Integer#compare(int,int)}.
791 int cmp = compare(this.get(i), that.get(j));
798 private static int compare(int x, int y) { method in class:IntBuffer
801 return Integer.compare(x, y);
H A DLongBuffer.java773 * {@link Long#compare(long,long)}.
784 int cmp = compare(this.get(i), that.get(j));
791 private static int compare(long x, long y) { method in class:LongBuffer
794 return Long.compare(x, y);
H A DShortBuffer.java773 * {@link Short#compare(short,short)}.
784 int cmp = compare(this.get(i), that.get(j));
791 private static int compare(short x, short y) { method in class:ShortBuffer
794 return Short.compare(x, y);
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DForwardBuilder.java432 static final String METHOD_NME = "PKIXCertComparator.compare()";
480 public int compare(X509Certificate oCert1, X509Certificate oCert2) { method in class:ForwardBuilder.PKIXCertComparator

Completed in 856 milliseconds

123