Verified Owner
Top Fields Constructors Methods
org.jabref.logic.quality.consistency

public final Record ConsistencyMessage

extends Record
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Record Components
message:List<String> 
bibEntry:BibEntry 
Imports
java.util.List, org.jabref.model.entry.BibEntry

Field Summary

Modifier and TypeField and Description
private final BibEntry
bibEntry

Record Component accessed by bibEntry().

private final List<String>
message

Record Component accessed by message().

Constructor Summary

AccessConstructor and Description
public
ConsistencyMessage(List<String> message, BibEntry bibEntry)

Method Summary

Modifier and TypeMethod and Description
public BibEntry
bibEntry()

Record Component getter of bibEntry.

public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

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

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public List<String>
message()

Record Component getter of message.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

bibEntryback to summary
private final BibEntry bibEntry

Record Component accessed by bibEntry().

messageback to summary
private final List<String> message

Record Component accessed by message().

Constructor Detail

ConsistencyMessageback to summary
public ConsistencyMessage(List<String> message, BibEntry bibEntry)

Method Detail

bibEntryback to summary
public BibEntry bibEntry()

Record Component getter of bibEntry.

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Annotations
@Override
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).
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.

messageback to summary
public List<String> message()

Record Component getter of message.

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.