Interface ByteValue
- All Superinterfaces:
Comparable<ByteValue>, Mirror, PrimitiveValue, Value
public interface ByteValue extends PrimitiveValue, Comparable<ByteValue>
Provides access to a primitive
byte value in the target VM.- Since:
- 1.3
Method Summary
Methods declared in interface Comparable
compareTo | Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo |
Compares this object with the specified object for order. |
Methods declared in interface Mirror
toString, virtualMachine | Modifier and Type | Method | Description |
|---|---|---|
String |
toString() |
Returns a String describing this mirror |
VirtualMachine |
virtualMachine() |
Gets the VirtualMachine to which this Mirror belongs. |
Methods declared in interface PrimitiveValue
booleanValue, byteValue, charValue, doubleValue, floatValue, intValue, longValue, shortValue | Modifier and Type | Method | Description |
|---|---|---|
boolean |
booleanValue() |
Converts this value to a BooleanValue and returns the result as a boolean. |
byte |
byteValue() |
Converts this value to a ByteValue and returns the result as a byte. |
char |
charValue() |
Converts this value to a CharValue and returns the result as a char. |
double |
doubleValue() |
Converts this value to a DoubleValue and returns the result as a double. |
float |
floatValue() |
Converts this value to a FloatValue and returns the result as a float. |
int |
intValue() |
Converts this value to an IntegerValue and returns the result as an int. |
long |
longValue() |
Converts this value to a LongValue and returns the result as a long. |
short |
shortValue() |
Converts this value to a ShortValue and returns the result as a short. |
Method Details
value
byte value()
Returns this ByteValue as a
byte.- Returns:
- the
bytemirrored by this object.
equals
boolean equals(Object obj)
Compares the specified Object with this ByteValue for equality.
hashCode
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.