All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squarespace.cldrengine.calendars.CalendarContext Maven / Gradle / Ivy

The newest version!
package com.squarespace.cldrengine.calendars;

import java.util.Map;

import com.squarespace.cldrengine.api.Bundle;
import com.squarespace.cldrengine.api.CalendarDate;
import com.squarespace.cldrengine.api.ContextTransformFieldType;
import com.squarespace.cldrengine.api.ContextType;
import com.squarespace.cldrengine.api.DateFormatAltOptions;
import com.squarespace.cldrengine.numbers.NumberingSystem;

import lombok.AllArgsConstructor;

@AllArgsConstructor
class CalendarContext {

  /**
   * Calendar-specific date
   */
  T date;

  /**
   * Resource bundle for accessing strings
   */
  Bundle bundle;

  // TODO: number params

  /**
   * Numbering system for formatting decimal numbers into strings
   */
  NumberingSystem system;

  /**
   * Latin decimal digit numbering system.
   */
  NumberingSystem latnSystem;

  /**
   * Context in which we're formatting.
   */
  ContextType context;

  /**
   * Context transform info.
   */
  Map transform;


  /**
   * Alt formatting options.
   */
  DateFormatAltOptions alt;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy