Class NullableTypeStrategy<T>

    • Constructor Detail

      • NullableTypeStrategy

        public NullableTypeStrategy​(TypeStrategy<T> delegate)
    • Method Detail

      • estimateSizeBytes

        public int estimateSizeBytes​(@Nullable
                                     T value)
      • readRetainsBufferReference

        public boolean readRetainsBufferReference()
        Whether the read(java.nio.ByteBuffer) methods return an object that may retain a reference to the provided ByteBuffer. If a reference is sometimes retained, this method returns true. It returns false if, and only if, a reference is *never* retained.
      • write

        public int write​(ByteBuffer buffer,
                         int offset,
                         @Nullable
                         T value,
                         int maxSizeBytes)