public static ValidateFieldResult < String > from ( ValidateFieldResult result ) { ValidateFieldResult < String > stringResult = new ValidateFieldResult <> ( ) ; stringResult . clean = String . valueOf ( result . clean ) ; stringResult . errors . addAll ( result . errors ) ; return stringResult ; }
Builder method that constructs a ValidateFieldResult with type String from the input result .