Module org.eclipse.jgit
Class DfsObjDatabase.PackSource.ComparatorBuilder
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.dfs.DfsObjDatabase.PackSource.ComparatorBuilder
-
- Enclosing class:
- DfsObjDatabase.PackSource
public static class DfsObjDatabase.PackSource.ComparatorBuilder extends Object
Builder for describingDfsObjDatabase.PackSourceordering where some values are explicitly considered equal to others.
-
-
Constructor Summary
Constructors Constructor Description ComparatorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DfsObjDatabase.PackSource.ComparatorBuilderadd(DfsObjDatabase.PackSource... sources)Add a collection of sources that should sort as equal.Comparator<DfsObjDatabase.PackSource>build()Build the comparator.
-
-
-
Method Detail
-
add
public DfsObjDatabase.PackSource.ComparatorBuilder add(DfsObjDatabase.PackSource... sources)
Add a collection of sources that should sort as equal.Sources in the input will sort after sources listed in previous calls to this method.
- Parameters:
sources- sources in this equivalence class.- Returns:
- this.
-
build
public Comparator<DfsObjDatabase.PackSource> build()
Build the comparator.- Returns:
- new comparator instance.
- Throws:
IllegalArgumentException- not allDfsObjDatabase.PackSourceinstances were explicitly assigned an equivalence class.
-
-