Lines Matching full:value
40 * Returns the {@code byte} value that is equal to {@code value}, if possible.
42 * @param value any value in the range of the {@code byte} type
43 * @return the {@code byte} value that equals {@code value}
44 * @throws IllegalArgumentException if {@code value} is greater than {@link
47 public static byte checkedCast(long value) {
48 byte result = (byte) value;
49 checkArgument(result == value, "Out of range: %s", value);
54 * Returns the {@code byte} nearest in value to {@code value}.
56 * @param value any {@code long} value
57 * @return the same value cast to {@code byte} if it is in the range of the
61 public static byte saturatedCast(long value) {
62 if (value > Byte.MAX_VALUE) {
65 if (value < Byte.MIN_VALUE) {
68 return (byte) value;
72 * Compares the two specified {@code byte} values. The sign of the value
77 * @return a negative value if {@code a} is less than {@code b}; a positive
78 * value if {@code a} is greater than {@code b}; or zero if they are equal
85 * Returns the least value present in {@code array}.
88 * @return the value present in {@code array} that is less than or equal to
89 * every other value in the array
104 * Returns the greatest value present in {@code array}.
107 * @return the value present in {@code array} that is greater than or equal to
108 * every other value in the array