Top Description Fields Constructors Methods
org.jabref.gui.entryeditor

public final Record SciteTallyModel

extends Record
Class Inheritance
Record Components
doi:String 
total:int 
supporting:int 
contradicting:int 
mentioning:int 
unclassified:int 
citingPublications:int 
Imports
kong.unirest.core.json.JSONObject

Simple model object to hold the scite.ai tallies data for a given DOI

Field Summary

Modifier and TypeField and Description
private final int
citingPublications

Record Component accessed by citingPublications().

private final int
contradicting

Record Component accessed by contradicting().

private final String
doi

Record Component accessed by doi().

private final int
mentioning

Record Component accessed by mentioning().

private final int
supporting

Record Component accessed by supporting().

private final int
total

Record Component accessed by total().

private final int
unclassified

Record Component accessed by unclassified().

Constructor Summary

AccessConstructor and Description
public
SciteTallyModel(String doi, int total, int supporting, int contradicting, int mentioning, int unclassified, int citingPublications)

Method Summary

Modifier and TypeMethod and Description
public int
citingPublications()

Record Component getter of citingPublications.

public int
contradicting()

Record Component getter of contradicting.

public String
doi()

Record Component getter of doi.

public final boolean
equals(Object
the reference object with which to compare.
o
)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public static SciteTallyModel

Returns:

a new SciteTallyModel
fromJSONObject
(kong.unirest.core.json.JSONObject
The JSON object holding the tally values
jsonObject
)

Creates a SciteTallyModel from a JSONObject (dictionary/map)

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public int
mentioning()

Record Component getter of mentioning.

public int
supporting()

Record Component getter of supporting.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public int
total()

Record Component getter of total.

public int
unclassified()

Record Component getter of unclassified.

Field Detail

citingPublicationsback to summary
private final int citingPublications

Record Component accessed by citingPublications().

contradictingback to summary
private final int contradicting

Record Component accessed by contradicting().

doiback to summary
private final String doi

Record Component accessed by doi().

mentioningback to summary
private final int mentioning

Record Component accessed by mentioning().

supportingback to summary
private final int supporting

Record Component accessed by supporting().

totalback to summary
private final int total

Record Component accessed by total().

unclassifiedback to summary
private final int unclassified

Record Component accessed by unclassified().

Constructor Detail

SciteTallyModelback to summary
public SciteTallyModel(String doi, int total, int supporting, int contradicting, int mentioning, int unclassified, int citingPublications)

Method Detail

citingPublicationsback to summary
public int citingPublications()

Record Component getter of citingPublications.

contradictingback to summary
public int contradicting()

Record Component getter of contradicting.

doiback to summary
public String doi()

Record Component getter of doi.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this record is equal to the argument; false otherwise.

fromJSONObjectback to summary
public static SciteTallyModel fromJSONObject(kong.unirest.core.json.JSONObject jsonObject)

Creates a SciteTallyModel from a JSONObject (dictionary/map)

Parameters
jsonObject:kong.unirest.core.json.JSONObject

The JSON object holding the tally values

Returns:SciteTallyModel

a new SciteTallyModel

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

Returns:int

a hash code value for this record.

mentioningback to summary
public int mentioning()

Record Component getter of mentioning.

supportingback to summary
public int supporting()

Record Component getter of supporting.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

Returns:String

a string representation of the object.

totalback to summary
public int total()

Record Component getter of total.

unclassifiedback to summary
public int unclassified()

Record Component getter of unclassified.