Interface Marshallable<T>

    • Method Detail

      • size

        default OptionalInt size​(ProtoStreamSizeOperation operation,
                                 T value)
        Computes the size of the specified object.
        Parameters:
        context - the marshalling operation
        value - the value whose size is to be calculated
        Returns:
        an optional buffer size, only present if the buffer size could be computed
      • getJavaClass

        Class<? extends T> getJavaClass()
        Returns the type of object handled by this marshallable instance.
        Returns:
        the type of object handled by this marshallable instance.