Class CSLDate

  • All Implemented Interfaces:
    JsonObject

    public class CSLDate
    extends Object
    implements JsonObject
    A citation date.
    Author:
    Michel Kraemer
    • Constructor Detail

      • CSLDate

        public CSLDate()
    • Method Detail

      • getDateParts

        public int[][] getDateParts()
        Returns:
        the date's date-parts
      • getSeason

        public String getSeason()
        Returns:
        the date's season
      • getCirca

        public Boolean getCirca()
        Returns:
        the date's circa
      • getLiteral

        public String getLiteral()
        Returns:
        the date's literal
      • getRaw

        public String getRaw()
        Returns:
        the date's raw
      • toJson

        public Object toJson​(JsonBuilder builder)
        Description copied from interface: JsonObject
        Converts this object to a JSON object
        Specified by:
        toJson in interface JsonObject
        Parameters:
        builder - a builder that can be used to perform the conversion
        Returns:
        the JSON object
      • fromJson

        public static CSLDate fromJson​(Map<String,​Object> obj)
        Converts a JSON object to a CSLDate object.
        Parameters:
        obj - the JSON object to convert
        Returns:
        the converted CSLDate object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object