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:
parent
baeb2e1647
commit
a1906e8bbf
454 changed files with 5224 additions and 2925 deletions
|
@ -236,6 +236,21 @@ public final class Boolean implements Serializable, Comparable<Boolean>
|
|||
return value == other.value ? 0 : (value ? 1 : -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares two unboxed boolean values.
|
||||
*
|
||||
* @param x First value to compare.
|
||||
* @param y Second value to compare.
|
||||
* @return 0 if both Booleans represent the same value, a positive number
|
||||
* if this Boolean represents true and the other false, and a negative
|
||||
* number otherwise.
|
||||
* @since 1.7
|
||||
*/
|
||||
public static int compare(boolean x, boolean y)
|
||||
{
|
||||
return Boolean.valueOf(x).compareTo(Boolean.valueOf(y));
|
||||
}
|
||||
|
||||
/**
|
||||
* If the String argument is "true", ignoring case, return true.
|
||||
* Otherwise, return false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue