public class CitationIDIndexPair extends Object implements JsonObject
| Constructor and Description |
|---|
CitationIDIndexPair(CSLCitation citation)
Constructs a new pair with the values from the given citation object
|
CitationIDIndexPair(String citationId,
int noteIndex)
Constructs a new pair
|
| Modifier and Type | Method and Description |
|---|---|
static CitationIDIndexPair |
fromJson(List<?> arr)
Converts a JSON array to a CitationIDIndexPair object.
|
String |
getCitationId() |
int |
getNoteIndex() |
Object |
toJson(JsonBuilder builder)
Converts this object to a JSON object
|
public CitationIDIndexPair(String citationId, int noteIndex)
citationId - the citation IDnoteIndex - the indexpublic CitationIDIndexPair(CSLCitation citation)
citation - the citation objectpublic String getCitationId()
public int getNoteIndex()
public Object toJson(JsonBuilder builder)
JsonObjecttoJson in interface JsonObjectbuilder - a builder that can be used to perform the conversionpublic static CitationIDIndexPair fromJson(List<?> arr)
arr - the JSON array to convert