public final ByteBuffer asByteBuffer ( ) { final StringBuilder sb = new StringBuilder ( ) ; for ( Map . Entry < OperationalTextKey , String > e : settingsMap . entrySet ( ) ) { sb . append ( e . getKey ( ) . value ( ) ) ; sb . append ( KEY_VALUE_DELIMITER ) ; sb . append ( e . getValue ( ) ) ; sb . append ( PAIR_DELIMITER ) ; } return ByteBuffer . wrap ( sb . toString ( ) . getBytes ( ) ) ; }
Returns a buffer of the serialized key - value pairs which are contained in this instance .