Verified Owner
Top Inners Fields Constructors Methods
org.jabref.logic.citationkeypattern

public final Record CitationKeyPattern

extends Record
Class Inheritance
Record Components
stringRepresentation:String 
category:CitationKeyPattern.Category 
Imports
java.util.ArrayList, .List, java.util.stream.Stream

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private static final List<CitationKeyPattern>
private static final List<CitationKeyPattern>
private final CitationKeyPattern.Category
category

Record Component accessed by category().

private static final List<CitationKeyPattern>
public static final CitationKeyPattern
private static final List<CitationKeyPattern>
private final String
stringRepresentation

Record Component accessed by stringRepresentation().

private static final List<CitationKeyPattern>

Constructor Summary

AccessConstructor and Description
public
CitationKeyPattern(String stringRepresentation)

public
CitationKeyPattern(String stringRepresentation, CitationKeyPattern.Category category)

Method Summary

Modifier and TypeMethod and Description
public CitationKeyPattern.Category
category()

Record Component getter of category.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

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

public static List<CitationKeyPattern>
public CitationKeyPattern.Category
public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
stringRepresentation()

Record Component getter of stringRepresentation.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

AUTHOR_PATTERNSback to summary
private static final List<CitationKeyPattern> AUTHOR_PATTERNS
BIBENTRY_FIELDSback to summary
private static final List<CitationKeyPattern> BIBENTRY_FIELDS
categoryback to summary
private final CitationKeyPattern.Category category

Record Component accessed by category().

EDITOR_PATTERNSback to summary
private static final List<CitationKeyPattern> EDITOR_PATTERNS
NULL_CITATION_KEY_PATTERNback to summary
public static final CitationKeyPattern NULL_CITATION_KEY_PATTERN
OTHER_FIELD_PATTERNSback to summary
private static final List<CitationKeyPattern> OTHER_FIELD_PATTERNS
stringRepresentationback to summary
private final String stringRepresentation

Record Component accessed by stringRepresentation().

TITLE_PATTERNSback to summary
private static final List<CitationKeyPattern> TITLE_PATTERNS

Constructor Detail

CitationKeyPatternback to summary
public CitationKeyPattern(String stringRepresentation)
CitationKeyPatternback to summary
public CitationKeyPattern(String stringRepresentation, CitationKeyPattern.Category category)

Method Detail

categoryback to summary
public CitationKeyPattern.Category category()

Record Component getter of category.

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).
getAllPatternsback to summary
public static List<CitationKeyPattern> getAllPatterns()
getCategoryback to summary
public CitationKeyPattern.Category getCategory()
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.

stringRepresentationback to summary
public String stringRepresentation()

Record Component getter of stringRepresentation.

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.

org.jabref.logic.citationkeypattern back to summary

public final Enum CitationKeyPattern.Category

extends Enum<CitationKeyPattern.Category>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final CitationKeyPattern.Category
public static final CitationKeyPattern.Category
public static final CitationKeyPattern.Category
public static final CitationKeyPattern.Category
public static final CitationKeyPattern.Category

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CitationKeyPattern.Category
public static CitationKeyPattern.Category[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BIBENTRY_FIELDSback to summary
public static final CitationKeyPattern.Category BIBENTRY_FIELDS
OTHER_FIELDSback to summary
public static final CitationKeyPattern.Category OTHER_FIELDS

Constructor Detail

Categoryback to summary
private Category()

Method Detail

valueOfback to summary
public static CitationKeyPattern.Category valueOf(String name)
valuesback to summary
public static CitationKeyPattern.Category[] values()