Lines Matching full:value
72 * value.
77 * Returns a hash code for {@code value}; equal to the result of invoking
78 * {@code ((WrapperCl) value).hashCode()}.
80 * @param value a primitive {@code primtyp} value
81 * @return a hash code for the value
83 public static int hashCode(primtyp value) {
88 * Returns the {@code primtyp} value that is equal to {@code value}, if possible.
90 * @param value any value in the range of the {@code primtyp} type
91 * @return the {@code primtyp} value that equals {@code value}
92 * @throws IllegalArgumentException if {@code value} is greater than {@link
95 public static primtyp checkedCast(long value) {
96 primtyp result = (primtyp) value;
97 checkArgument(result == value, "Out of range: %s", value);
102 * Returns the {@code primtyp} nearest in value to {@code value}.
104 * @param value any {@code long} value
105 * @return the same value cast to {@code primtyp} if it is in the range of the
109 public static primtyp saturatedCast(long value) {
110 if (value > WrapperCl.MAX_VALUE) {
113 if (value < WrapperCl.MIN_VALUE) {
116 return (primtyp) value;
120 * Compares the two specified {@code primtyp} values. The sign of the value
125 * @return a negative value if {@code a} is less than {@code b}; a positive
126 * value if {@code a} is greater than {@code b}; or zero if they are equal
137 * @param target a primitive {@code primtyp} value
138 * @return {@code true} if {@code array[i] == target} for some value of {@code
142 for (primtyp value : array) {
143 if (value == target) {
151 * Returns the index of the first appearance of the value {@code target} in
155 * @param target a primitive {@code primtyp} value
205 * Returns the index of the last appearance of the value {@code target} in
209 * @param target a primitive {@code primtyp} value
229 * Returns the least value present in {@code array}.
232 * @return the value present in {@code array} that is less than or equal to
233 * every other value in the array
248 * Returns the greatest value present in {@code array}.
251 * @return the value present in {@code array} that is greater than or equal to
252 * every other value in the array
290 * Returns a big-endian representation of {@code value} in a ?-element byte
292 * ByteBuffer.allocate(?).putPrimTyp(value).array()}. For example, the input
293 * value {@code ?} would yield the byte array {@code {?}}.
301 public static byte[] toByteArray(primtyp value) {
308 * Returns the {@code primtyp} value whose big-endian representation is
311 * {@code {?}} would yield the {@code primtyp} value {@code ?}.
447 * but any attempt to set a value to {@code null} will result in a {@link