Import GNU Classpath (20121202).
2012-12-19 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (20121202). * Regenerate class and header files. * Regenerate auto* files. * sources.am, gcj/javaprims.h: Regenerate. * gnu/java/nio/FileLockImpl.java (close): New override. From-SVN: r194618
This commit is contained in:
@@ -370,4 +370,21 @@ public final class Byte extends Number implements Comparable<Byte>
|
||||
return value - b.value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares two unboxed byte values.
|
||||
* The result is positive if the first is greater, negative if the second
|
||||
* is greater, and 0 if the two are equal.
|
||||
*
|
||||
* @param x First value to compare.
|
||||
* @param y Second value to compare.
|
||||
*
|
||||
* @return positive int if the first value is greater, negative if the second
|
||||
* is greater, and 0 if the two are equal.
|
||||
* @since 1.7
|
||||
*/
|
||||
public static int compare(byte x, byte y)
|
||||
{
|
||||
return Byte.valueOf(x).compareTo(Byte.valueOf(y));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user