public final class MarshallableTypeHints extends Object
Constructor and Description |
---|
MarshallableTypeHints() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the cached marshallable type hints.
|
BufferSizePredictor |
getBufferSizePredictor(Class<?> type)
Get the serialized form size predictor for a particular type.
|
BufferSizePredictor |
getBufferSizePredictor(Object obj) |
boolean |
isKnownMarshallable(Class<?> type)
Returns whether the hint on whether a particular type is marshallable or
not is available.
|
boolean |
isMarshallable(Class<?> type)
Returns whether a type can be serialized.
|
void |
markMarshallable(Class<?> type,
boolean isMarshallable)
Marks a particular type as being marshallable or not being not marshallable.
|
public BufferSizePredictor getBufferSizePredictor(Class<?> type)
type
- Marshallable type for which serialized form size will be predictedBufferSizePredictor
public BufferSizePredictor getBufferSizePredictor(Object obj)
public boolean isKnownMarshallable(Class<?> type)
type
- Marshallable type to check whether an attempt to mark it as
marshallable has been made.public boolean isMarshallable(Class<?> type)
markMarshallable(Class, boolean)
method earlier,
passing true as parameter. If a type has not yet been marked as
marshallable, this method will return false.public void markMarshallable(Class<?> type, boolean isMarshallable)
type
- Class to mark as serializable or non-serializableisMarshallable
- Whether the type can be marshalled or not.public void clear()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.