Lines Matching defs:value

37  * value generated by DTrace.
52 new String[] {"value", "numberOfBytes"})
77 private final Object value;
89 * @param v DTrace primitive data value
92 * @throws NullPointerException if the given value is {@code null}
96 * @throws ClassCastException if the given value is not a DTrace
97 * primitive type listed as a possible return value of {@link
103 value = v;
111 if (value == null) {
116 if (value instanceof Integer) {
127 } else if (value instanceof Long) {
133 } else if ((value instanceof String) || (value instanceof byte[])) {
145 } else if (value instanceof Number) {
152 throw new ClassCastException(value.getClass().getName() +
153 " value is not a D primitive");
158 * Gets the traced D primitive value of this record.
160 * @return a non-null value whose type is one of the following:
170 return value;
174 * Gets the number of bytes used to store the primitive value of
180 * @return the number of bytes used to store the primitive value
183 * value
193 * Defines equality as having the same value.
209 if (value instanceof byte[]) {
210 if (r.value instanceof byte[]) {
211 byte[] a1 = (byte[])value;
212 byte[] a2 = (byte[])r.value;
217 return value.equals(r.value);
227 * the value is a raw byte array
233 if (value instanceof byte[]) {
234 return Arrays.hashCode((byte[])value);
236 return value.hashCode();
355 valueToString(Object value)
358 if (value instanceof byte[]) {
359 s = rawBytesString((byte[])value);
361 s = value.toString();
385 * @return the value of {@link Object#toString} when called on
386 * {@link #getValue()}; or if the value is an array of raw bytes, a