Java 类java.time.format.DateTimeFormatterBuilder.CompositePrinterParser 实例源码

项目:OpenJSharp    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:jdk8u-jdk    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:openjdk-jdk10    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:openjdk9    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:Java8CN    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:jdk8u_jdk    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:lookaside_java-1.8.0-openjdk    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:infobip-open-jdk-8    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:jdk8u-dev-jdk    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:OLD-OpenJDK8    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the DecimalStyle to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser,
        Locale locale, DecimalStyle decimalStyle,
        ResolverStyle resolverStyle, Set<TemporalField> resolverFields,
        Chronology chrono, ZoneId zone) {
    this.printerParser = Objects.requireNonNull(printerParser, "printerParser");
    this.resolverFields = resolverFields;
    this.locale = Objects.requireNonNull(locale, "locale");
    this.decimalStyle = Objects.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Objects.requireNonNull(resolverStyle, "resolverStyle");
    this.chrono = chrono;
    this.zone = zone;
}
项目:java-time-backport    文件:DateTimeFormatter.java   
/**
 * Constructor.
 *
 * @param printerParser  the printer/parser to use, not null
 * @param locale  the locale to use, not null
 * @param decimalStyle  the decimal style to use, not null
 * @param resolverStyle  the resolver style to use, not null
 * @param resolverFields  the fields to use during resolving, null for all fields
 * @param chrono  the chronology to use, null for no override
 * @param zone  the zone to use, null for no override
 */
DateTimeFormatter(CompositePrinterParser printerParser, Locale locale,
                  DecimalStyle decimalStyle, ResolverStyle resolverStyle,
                  Set<TemporalField> resolverFields, Chronology chrono, ZoneId zone) {
    this.printerParser = Jdk8Methods.requireNonNull(printerParser, "printerParser");
    this.locale = Jdk8Methods.requireNonNull(locale, "locale");
    this.decimalStyle = Jdk8Methods.requireNonNull(decimalStyle, "decimalStyle");
    this.resolverStyle = Jdk8Methods.requireNonNull(resolverStyle, "resolverStyle");
    this.resolverFields = resolverFields;
    this.chrono = chrono;
    this.zone = zone;
}
项目:java8-backports    文件:DateTimeFormatter.java   
/**
 * Constructor.
 * 
 * @param printerParser the printer/parser to use, not null
 * @param locale the locale to use, not null
 * @param symbols the symbols to use, not null
 */
DateTimeFormatter(CompositePrinterParser printerParser, Locale locale, DateTimeFormatSymbols symbols) {

  this.locale = locale;
  this.symbols = symbols;
  this.printerParser = printerParser;
}
项目:OpenJSharp    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:jdk8u-jdk    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:openjdk-jdk10    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:openjdk9    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:Java8CN    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:jdk8u_jdk    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:lookaside_java-1.8.0-openjdk    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:infobip-open-jdk-8    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:jdk8u-dev-jdk    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:OLD-OpenJDK8    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:java-time-backport    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 *
 * @param optional  whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {
    return printerParser.withOptional(optional);
}
项目:java8-backports    文件:DateTimeFormatter.java   
/**
 * Returns the formatter as a composite printer parser.
 * 
 * @param optional whether the printer/parser should be optional
 * @return the printer/parser, not null
 */
CompositePrinterParser toPrinterParser(boolean optional) {

  return this.printerParser.withOptional(optional);
}