Class CitationIDIndexPair

    • Constructor Detail

      • CitationIDIndexPair

        public CitationIDIndexPair​(java.lang.String citationId,
                                   int noteIndex)
        Constructs a new pair
        Parameters:
        citationId - the citation ID
        noteIndex - the index
      • CitationIDIndexPair

        public CitationIDIndexPair​(CSLCitation citation)
        Constructs a new pair with the values from the given citation object
        Parameters:
        citation - the citation object
    • Method Detail

      • getCitationId

        public java.lang.String getCitationId()
        Returns:
        the citation ID
      • getNoteIndex

        public int getNoteIndex()
        Returns:
        the note index
      • toJson

        public java.lang.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 CitationIDIndexPair fromJson​(java.util.List<?> arr)
        Converts a JSON array to a CitationIDIndexPair object.
        Parameters:
        arr - the JSON array to convert
        Returns:
        the converted CitationIDIndexPair object