Top Fields Constructors Methods
org.jabref.logic.bst

public final Record BstVMContext

extends Record
Class Inheritance
Record Components
entries:List<BstEntry> 
strings:Map<String, String> 
integers:Map<String, Integer> 
functions:Map<String, BstFunctions.BstFunction> 
stack:Deque<Object> 
bibDatabase:BibDatabase 
path:Optional<Path> 
Imports
java.nio.file.Path, java.util.Deque, .HashMap, .LinkedList, .List, .Map, .Optional, org.jabref.model.database.BibDatabase

Field Summary

Modifier and TypeField and Description
private final BibDatabase
bibDatabase

Record Component accessed by bibDatabase().

private final List<BstEntry>
entries

Record Component accessed by entries().

private final Map<String, BstFunctions.BstFunction>
functions

Record Component accessed by functions().

private final Map<String, Integer>
integers

Record Component accessed by integers().

private final Optional<Path>
path

Record Component accessed by path().

private final Deque<Object>
stack

Record Component accessed by stack().

private final Map<String, String>
strings

Record Component accessed by strings().

Constructor Summary

AccessConstructor and Description
public
BstVMContext(List<BstEntry> entries, BibDatabase bibDatabase, Path path)

public
BstVMContext(List<BstEntry> entries, Map<String, String> strings, Map<String, Integer> integers, Map<String, BstFunctions.BstFunction> functions, Deque<Object> stack, BibDatabase bibDatabase, Optional<Path> path)

Method Summary

Modifier and TypeMethod and Description
public BibDatabase
bibDatabase()

Record Component getter of bibDatabase.

public List<BstEntry>
entries()

Record Component getter of entries.

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 Map<String, BstFunctions.BstFunction>
functions()

Record Component getter of functions.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public Map<String, Integer>
integers()

Record Component getter of integers.

public Optional<Path>
path()

Record Component getter of path.

public Deque<Object>
stack()

Record Component getter of stack.

public Map<String, String>
strings()

Record Component getter of strings.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

bibDatabaseback to summary
private final BibDatabase bibDatabase

Record Component accessed by bibDatabase().

entriesback to summary
private final List<BstEntry> entries

Record Component accessed by entries().

functionsback to summary
private final Map<String, BstFunctions.BstFunction> functions

Record Component accessed by functions().

integersback to summary
private final Map<String, Integer> integers

Record Component accessed by integers().

pathback to summary
private final Optional<Path> path

Record Component accessed by path().

stackback to summary
private final Deque<Object> stack

Record Component accessed by stack().

stringsback to summary
private final Map<String, String> strings

Record Component accessed by strings().

Constructor Detail

BstVMContextback to summary
public BstVMContext(List<BstEntry> entries, BibDatabase bibDatabase, Path path)
BstVMContextback to summary
public BstVMContext(List<BstEntry> entries, Map<String, String> strings, Map<String, Integer> integers, Map<String, BstFunctions.BstFunction> functions, Deque<Object> stack, BibDatabase bibDatabase, Optional<Path> path)

Method Detail

bibDatabaseback to summary
public BibDatabase bibDatabase()

Record Component getter of bibDatabase.

entriesback to summary
public List<BstEntry> entries()

Record Component getter of entries.

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.

functionsback to summary
public Map<String, BstFunctions.BstFunction> functions()

Record Component getter of functions.

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.

integersback to summary
public Map<String, Integer> integers()

Record Component getter of integers.

pathback to summary
public Optional<Path> path()

Record Component getter of path.

stackback to summary
public Deque<Object> stack()

Record Component getter of stack.

stringsback to summary
public Map<String, String> strings()

Record Component getter of strings.

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.