static class ValueReaders.QuantityReader extends java.lang.Object implements ValueReaders.IValueReader
| Modifier and Type | Field and Description |
|---|---|
private boolean |
floatingPoint |
private java.lang.String |
typeIdentifier |
private IUnit |
unit |
private boolean |
unsignedOrFloat |
| Constructor and Description |
|---|
QuantityReader(java.lang.String typeIdentifier,
IUnit unit,
boolean unsigned) |
| Modifier and Type | Method and Description |
|---|---|
ContentType<?> |
getContentType() |
(package private) IQuantity |
quantity(double numericalValue) |
(package private) IQuantity |
quantity(long numericalValue) |
(package private) IQuantity |
quantity(java.lang.Number numericalValue) |
java.lang.Object |
read(IDataInput in,
boolean allowUnresolvedReference) |
java.lang.Object |
resolve(java.lang.Object value) |
void |
skip(IDataInput in) |
private final java.lang.String typeIdentifier
private final IUnit unit
private final boolean floatingPoint
private final boolean unsignedOrFloat
QuantityReader(java.lang.String typeIdentifier,
IUnit unit,
boolean unsigned)
throws InvalidJfrFileException
InvalidJfrFileExceptionpublic java.lang.Object read(IDataInput in, boolean allowUnresolvedReference) throws java.io.IOException, InvalidJfrFileException
read in interface ValueReaders.IValueReaderjava.io.IOExceptionInvalidJfrFileExceptionpublic void skip(IDataInput in) throws java.io.IOException, InvalidJfrFileException
skip in interface ValueReaders.IValueReaderjava.io.IOExceptionInvalidJfrFileExceptionIQuantity quantity(java.lang.Number numericalValue)
IQuantity quantity(long numericalValue)
IQuantity quantity(double numericalValue)
public java.lang.Object resolve(java.lang.Object value)
throws InvalidJfrFileException
resolve in interface ValueReaders.IValueReaderInvalidJfrFileExceptionpublic ContentType<?> getContentType()
getContentType in interface ValueReaders.IValueReader