Top Description Constructors Methods
org.eclipse.jgit.internal.storage.reftable

pack-priv Class EmptyLogCursor

extends LogCursor
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.lib.ReflogEntry

Empty LogCursor with no results.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.close.

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public ReflogEntry
public String
getRefName()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.getRefName.

Get name of the current reference.

public long
getUpdateIndex()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.getUpdateIndex.

Get identifier of the transaction that created the log record.

public boolean
next()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.next.

Check if another log record is available.

Constructor Detail

EmptyLogCursorback to summary
pack-priv EmptyLogCursor()

Method Detail

closeback to summary
public void close()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.close.

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
getReflogEntryback to summary
public ReflogEntry getReflogEntry()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.getReflogEntry.

Doc from org.eclipse.jgit.internal.storage.reftable.LogCursor.getReflogEntry.

Get current log entry.

Returns:ReflogEntry

current log entry. Maybe null if we are producing deletions.

Annotations
@Override
getRefNameback to summary
public String getRefName()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.getRefName.

Doc from org.eclipse.jgit.internal.storage.reftable.LogCursor.getRefName.

Get name of the current reference.

Returns:String

name of the current reference.

Annotations
@Override
getUpdateIndexback to summary
public long getUpdateIndex()

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.getUpdateIndex.

Doc from org.eclipse.jgit.internal.storage.reftable.LogCursor.getUpdateIndex.

Get identifier of the transaction that created the log record.

Returns:long

identifier of the transaction that created the log record.

Annotations
@Override
nextback to summary
public boolean next() throws IOException

Implements abstract org.eclipse.jgit.internal.storage.reftable.LogCursor.next.

Doc from org.eclipse.jgit.internal.storage.reftable.LogCursor.next.

Check if another log record is available.

Returns:boolean

true if there is another result.

Annotations
@Override
Exceptions
IOException:
logs cannot be read.