public DateTimeFormatterBuilder parseDefaulting(TemporalField field,long value){
  Objects.requireNonNull(field,"field");
  appendInternal(new DefaultValueParser(field,value));
  return this;
}

public DateTimeFormatterBuilder parseDefaulting ( TemporalField field , long value ) { Objects . requireNonNull ( field , "field" ) ; appendInternal ( new DefaultValueParser ( field , value ) ) ; return this ; }
appends a default value for a field to the formatter for use in parsing . < p > this appends an instruction to the builder to inject a default value into the parsed result . this is especially useful in conjunction with optional parts of the formatter . < p > for example , consider a formatter that parses the year , followed by an optional month , with a further optional day - of - month . using such a formatter would require the calling code to check whether a full date , year - month or just a year had been parsed . this method can be used to default the month and day - of - month to a sensible value , such as the first of the month , allowing the calling code to always get a date . < p > during formatting , this method has no effect . < p > during parsing , the current state of the parse is inspected . if the specified field has no associated value , because it has not been parsed successfully at that point , then the specified value is injected into the parse result . injection is immediate , thus the field - value pair will be visible to any subsequent elements in the formatter . as such , this method is normally called at the end of the builder .
