Class DfsStreamKey
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.dfs.DfsStreamKey
-
- Direct Known Subclasses:
DfsStreamKey.ByteArrayDfsStreamKey,DfsStreamKey.ForReverseIndex
public abstract class DfsStreamKey extends java.lang.ObjectKey used byDfsBlockCacheto disambiguate streams.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classDfsStreamKey.ByteArrayDfsStreamKey(package private) static classDfsStreamKey.ForReverseIndex
-
Field Summary
Fields Modifier and Type Field Description (package private) inthash(package private) intpackExtPos
-
Constructor Summary
Constructors Modifier Constructor Description protectedDfsStreamKey(int hash, PackExt ext)Constructor for DfsStreamKey.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(java.lang.Object o)inthashCode()static DfsStreamKeyof(DfsRepositoryDescription repo, java.lang.String name, PackExt ext)Create aDfsStreamKeyjava.lang.StringtoString()
-
-
-
Method Detail
-
of
public static DfsStreamKey of(DfsRepositoryDescription repo, java.lang.String name, @Nullable PackExt ext)
Create aDfsStreamKey- Parameters:
repo- description of the containing repository.name- compute the key from a string name.ext- pack file extension, ornull.- Returns:
- key for
name
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public abstract boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-