/** * Add the bytes to the fieldBuilder * @param newByte * @return */ public FieldBufferBuilder addByte( final byte newByte ) { buffer.add( BYTE_SERIALIZER.toByteBuffer( newByte ) ); return this; }
/** * Add a UUID to the field buffer */ public FieldBufferBuilder addUUID( final UUID value ) { buffer.add( UUID_SERIALIZER.toByteBuffer( value ) ); return this; }
/** * add a string to buffer * @param value * @return */ public FieldBufferBuilder addString( final String value ) { buffer.add( STRING_SERIALIZER.toByteBuffer( value ) ); return this; }
/** * Add the integer to the fields. * @param value * @return */ public FieldBufferBuilder addInteger( final int value ) { buffer.add( INTEGER_SERIALIZER.toByteBuffer( value ) ); return this; }
/** * Add the byte array to the fieldbuilder * @param bytes * @return */ public FieldBufferBuilder addBytes( final byte[] bytes ) { buffer.add( BYTES_ARRAY_SERIALIZER.toByteBuffer( bytes ) ); return this; }
buffer.add( fieldData );