public static Sample ofTimeDoubleText(long time, double numericValue, String textValue) {
        return new Sample(time, null, null, textValue)
                .setNumericValueFromDouble(numericValue);
    }
public static Sample ofTimeDoubleText ( long time , double numericValue , String textValue ) { return new Sample ( time , null , null , textValue ) . setNumericValueFromDouble ( numericValue ) ; }
Creates a new {@link Sample} with time, double and text value specified

@param  time         time in milliseconds from 1970-01-01 00:00:00
@param  numericValue the numeric value of the sample
@param  textValue    the text value of the sample
@return the Sample with specified fields