equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
122 * |
122 * |
123 * <p>In the foregoing description, the notation |
123 * <p>In the foregoing description, the notation |
124 * {@code sgn(}<i>expression</i>{@code )} designates the mathematical |
124 * {@code sgn(}<i>expression</i>{@code )} designates the mathematical |
125 * <i>signum</i> function, which is defined to return one of {@code -1}, |
125 * <i>signum</i> function, which is defined to return one of {@code -1}, |
126 * {@code 0}, or {@code 1} according to whether the value of |
126 * {@code 0}, or {@code 1} according to whether the value of |
127 * <i>expression</i> is negative, zero or positive. |
127 * <i>expression</i> is negative, zero, or positive, respectively. |
128 * |
128 * |
129 * @param o the object to be compared. |
129 * @param o the object to be compared. |
130 * @return a negative integer, zero, or a positive integer as this object |
130 * @return a negative integer, zero, or a positive integer as this object |
131 * is less than, equal to, or greater than the specified object. |
131 * is less than, equal to, or greater than the specified object. |
132 * |
132 * |