/// <summary>
        /// Gets the resolved result of the parse.
        /// </summary>
        /// <returns> the result of the parse, not null </returns>
        internal TemporalAccessor ToResolved(ResolverStyle resolverStyle, Set <TemporalField> resolverFields)
        {
            Parsed parsed = CurrentParsed();

            parsed.Chrono = EffectiveChronology;
            parsed.Zone   = (parsed.Zone != null ? parsed.Zone : Formatter.Zone);
            return(parsed.Resolve(resolverStyle, resolverFields));
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a copy.
        /// </summary>
        internal Parsed Copy()
        {
            // only copy fields used in parsing stage
            Parsed cloned = new Parsed();

//JAVA TO C# CONVERTER TODO TASK: There is no .NET Dictionary equivalent to the Java 'putAll' method:
            cloned.FieldValues.putAll(this.FieldValues);
            cloned.Zone       = this.Zone;
            cloned.Chrono     = this.Chrono;
            cloned.LeapSecond = this.LeapSecond;
            return(cloned);
        }