Interface Marshallable<T>
-
- Type Parameters:
T- the type of this marshaller
- All Known Subinterfaces:
FieldMarshaller<T>,ProtoStreamMarshaller<T>,ProtoStreamMarshallerProvider,ScalarMarshaller<T>,ScalarMarshallerProvider
- All Known Implementing Classes:
AbstractCollectionMarshaller,AbstractMapMarshaller,AbstractMemberMarshaller,AnyMarshaller,AtomicMarshallerProvider,BigDecimalMarshaller,BinaryFieldMarshaller,BinaryMemberMarshaller,BinaryMethodMarshaller,ByteBufferMarshalledKeyMarshaller,ByteBufferMarshalledValueMarshaller,CalendarMarshaller,ClassMarshaller,CollectionMarshaller,ConcurrentMapMarshaller,ConcurrentMarshallerProvider,ConcurrentSortedMapMarshaller,CopyOnWriteCollectionMarshaller,DecoratorMarshaller,EnumMapMarshaller,EnumMarshaller,EnumMarshallerAdapter,ExceptionMarshaller,FieldMarshaller,FieldSetProtoStreamMarshaller,FunctionalMarshaller,FunctionalScalarMarshaller,InetSocketAddressMarshaller,InstantMarshaller,LinkedHashMapMarshaller,LoadedClassField,LocalDateTimeMarshaller,MapEntryMarshaller,MapMarshaller,MarshallingMarshallerProvider,MathContextMarshaller,MathMarshallerProvider,MonthDayMarshaller,NetMarshallerProvider,OffsetDateTimeMarshaller,OffsetTimeMarshaller,OptionalMarshaller,PackedArrayMarshaller,PeriodMarshaller,ProtoStreamMarshallerAdapter,ProxyMarshaller,Scalar,ScalarClass,ScalarFieldMarshaller,SimpleFunctionalMarshaller,SingletonCollectionMarshaller,SingletonMapMarshaller,SortedMapMarshaller,SortedSetMarshaller,SQLMarshallerProvider,StackTraceElementMarshaller,SynchronizedDecoratorMarshaller,TernaryFieldMarshaller,TernaryMemberMarshaller,TernaryMethodMarshaller,TimeMarshallerProvider,TypedArrayMarshaller,TypedEnumMarshaller,TypedObjectMarshaller,UnaryFieldMarshaller,UnaryMemberMarshaller,UnaryMethodMarshaller,UnmodifiableCollectionMarshaller,UnmodifiableMapMarshaller,URIMarshaller,URLMarshaller,UtilMarshallerProvider,ValueMarshaller,YearMonthMarshaller,ZonedDateTimeMarshaller
public interface Marshallable<T> extends Readable<T>, Writable<T>
Interface inherited by marshallable components.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Class<? extends T>getJavaClass()Returns the type of object handled by this marshallable instance.default OptionalIntsize(ProtoStreamSizeOperation operation, T value)Computes the size of the specified object.
-
-
-
Method Detail
-
size
default OptionalInt size(ProtoStreamSizeOperation operation, T value)
Computes the size of the specified object.- Parameters:
context- the marshalling operationvalue- the value whose size is to be calculated- Returns:
- an optional buffer size, only present if the buffer size could be computed
-
-