Lines Matching full:value
49 * value.
54 * Returns a hash code for {@code value}; equal to the result of invoking
55 * {@code ((Long) value).hashCode()}.
57 * @param value a primitive {@code long} value
58 * @return a hash code for the value
60 public static int hashCode(long value) {
61 return (int) (value ^ (value >>> 32));
65 * Compares the two specified {@code long} values. The sign of the value
70 * @return a negative value if {@code a} is less than {@code b}; a positive
71 * value if {@code a} is greater than {@code b}; or zero if they are equal
82 * @param target a primitive {@code long} value
83 * @return {@code true} if {@code array[i] == target} for some value of {@code
87 for (long value : array) {
88 if (value == target) {
96 * Returns the index of the first appearance of the value {@code target} in
100 * @param target a primitive {@code long} value
150 * Returns the index of the last appearance of the value {@code target} in
154 * @param target a primitive {@code long} value
174 * Returns the least value present in {@code array}.
177 * @return the value present in {@code array} that is less than or equal to
178 * every other value in the array
193 * Returns the greatest value present in {@code array}.
196 * @return the value present in {@code array} that is greater than or equal to
197 * every other value in the array
235 * Returns a big-endian representation of {@code value} in an 8-element byte
236 * array; equivalent to {@code ByteBuffer.allocate(8).putLong(value).array()}.
237 * For example, the input value {@code 0x1213141516171819L} would yield the
248 public static byte[] toByteArray(long value) {
250 (byte) (value >> 56),
251 (byte) (value >> 48),
252 (byte) (value >> 40),
253 (byte) (value >> 32),
254 (byte) (value >> 24),
255 (byte) (value >> 16),
256 (byte) (value >> 8),
257 (byte) value};
261 * Returns the {@code long} value whose big-endian representation is
265 * {@code long} value {@code 0x1213141516171819L}.
411 * but any attempt to set a value to {@code null} will result in a {@link