Verified Owner
Top Description Inners Fields Constructors Methods
org.jabref.logic.git.model

public final Class BookkeepingResult

extends Object
Class Inheritance
Imports
java.util.Optional

This is the return value of the bookkeeping layer, org.jabref.logic.git.merge.execution.MergeBookkeeper indicating "whether we performed a fast-forward or created a new (merge or single-parent) commit." It does not participate in any content synthesis; the input file content must be the merge result already prepared before the GUI. If "the local is strictly behind the remote and the file content is exactly the same as the remote" → fast-forward, no new commit is created; Otherwise:

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final Optional<String>
private final BookkeepingResult.Kind

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BookkeepingResult
public Optional<String>
public static BookkeepingResult
public boolean
public boolean
public boolean
public boolean
public boolean
public BookkeepingResult.Kind
kind()

public static BookkeepingResult
newCommit(String commitId)

public static BookkeepingResult
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commitIdback to summary
private final Optional<String> commitId
kindback to summary
private final BookkeepingResult.Kind kind

Constructor Detail

BookkeepingResultback to summary
private BookkeepingResult(BookkeepingResult.Kind kind, Optional<String> commitId)

Method Detail

aheadback to summary
public static BookkeepingResult ahead()
commitIdback to summary
public Optional<String> commitId()
fastForwardback to summary
public static BookkeepingResult fastForward()
hasNewCommitback to summary
public boolean hasNewCommit()
isAheadback to summary
public boolean isAhead()
isFastForwardback to summary
public boolean isFastForward()
isNoopback to summary
public boolean isNoop()
isUpToDateback to summary
public boolean isUpToDate()
kindback to summary
public BookkeepingResult.Kind kind()
newCommitback to summary
public static BookkeepingResult newCommit(String commitId)
upToDateback to summary
public static BookkeepingResult upToDate()
org.jabref.logic.git.model back to summary

public final Enum BookkeepingResult.Kind

extends Enum<BookkeepingResult.Kind>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final BookkeepingResult.Kind
public static final BookkeepingResult.Kind
public static final BookkeepingResult.Kind
public static final BookkeepingResult.Kind

Constructor Summary

AccessConstructor and Description
private
Kind()

Method Summary

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

Field Detail

FAST_FORWARDback to summary
public static final BookkeepingResult.Kind FAST_FORWARD
NEW_COMMITback to summary
public static final BookkeepingResult.Kind NEW_COMMIT
NOOP_AHEADback to summary
public static final BookkeepingResult.Kind NOOP_AHEAD
NOOP_UP_TO_DATEback to summary
public static final BookkeepingResult.Kind NOOP_UP_TO_DATE

Constructor Detail

Kindback to summary
private Kind()

Method Detail

valueOfback to summary
public static BookkeepingResult.Kind valueOf(String name)
valuesback to summary
public static BookkeepingResult.Kind[] values()