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.Object
Key used byDfsBlockCache
to disambiguate streams.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DfsStreamKey.ByteArrayDfsStreamKey
(package private) static class
DfsStreamKey.ForReverseIndex
-
Field Summary
Fields Modifier and Type Field Description (package private) int
hash
(package private) int
packExtPos
-
Constructor Summary
Constructors Modifier Constructor Description protected
DfsStreamKey(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 boolean
equals(java.lang.Object o)
int
hashCode()
static DfsStreamKey
of(DfsRepositoryDescription repo, java.lang.String name, PackExt ext)
Create aDfsStreamKey
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public abstract boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-