public MapBuilder addTimestamp ( String fieldName , boolean include , long timestamp ) { if ( include && timestamp > 0 ) { map . put ( getFieldName ( fieldName ) , timestampFormatter . format ( timestamp ) ) ; } return this ; }
Adds and optionally formats the timestamp to the provided map under the provided field name if it s should be included .