Class LazyObjectIdSetFile
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.LazyObjectIdSetFile
-
- All Implemented Interfaces:
ObjectIdSet
public class LazyObjectIdSetFile extends java.lang.Object implements ObjectIdSet
Lazily loads a set of ObjectIds, one per line.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LazyObjectIdSetFile.Entry
-
Field Summary
Fields Modifier and Type Field Description private ObjectIdOwnerMap<LazyObjectIdSetFile.Entry>
set
private java.io.File
src
-
Constructor Summary
Constructors Constructor Description LazyObjectIdSetFile(java.io.File src)
Create a new lazy set from a file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(AnyObjectId objectId)
Returns true if the objectId is contained within the collection.private ObjectIdOwnerMap<LazyObjectIdSetFile.Entry>
load()
-
-
-
Field Detail
-
src
private final java.io.File src
-
set
private ObjectIdOwnerMap<LazyObjectIdSetFile.Entry> set
-
-
Method Detail
-
contains
public boolean contains(AnyObjectId objectId)
Returns true if the objectId is contained within the collection.- Specified by:
contains
in interfaceObjectIdSet
- Parameters:
objectId
- the objectId to find- Returns:
- whether the collection contains the objectId.
-
load
private ObjectIdOwnerMap<LazyObjectIdSetFile.Entry> load()
-
-