Codota Logo
ChunkKey.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.jgit.storage.dht.ChunkKey
constructor

Best Java code snippets using org.eclipse.jgit.storage.dht.ChunkKey.<init> (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: com.madgag/org.eclipse.jgit.storage.dht

/**
 * @param repo
 * @param chunk
 * @return the key
 */
public static ChunkKey create(RepositoryKey repo, ObjectId chunk) {
  return new ChunkKey(repo.asInt(), chunk);
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

/**
 * @param repo
 * @param chunk
 * @return the key
 */
public static ChunkKey create(RepositoryKey repo, ObjectId chunk) {
  return new ChunkKey(repo.asInt(), chunk);
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

/**
 * @param key
 * @param ptr
 * @param len
 * @return the key
 */
public static ChunkKey fromBytes(byte[] key, int ptr, int len) {
  if (len != KEYLEN)
    throw new IllegalArgumentException(MessageFormat.format(
        DhtText.get().invalidChunkKey, decode(key, ptr, ptr + len)));
  int repo = parse32(key, ptr);
  ObjectId chunk = ObjectId.fromString(key, ptr + 9);
  return new ChunkKey(repo, chunk);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

/**
 * @param key
 * @param ptr
 * @param len
 * @return the key
 */
public static ChunkKey fromBytes(byte[] key, int ptr, int len) {
  if (len != KEYLEN)
    throw new IllegalArgumentException(MessageFormat.format(
        DhtText.get().invalidChunkKey, decode(key, ptr, ptr + len)));
  int repo = parse32(key, ptr);
  ObjectId chunk = ObjectId.fromString(key, ptr + 9);
  return new ChunkKey(repo, chunk);
}
org.eclipse.jgit.storage.dhtChunkKey<init>

Popular methods of ChunkKey

  • asBytes
  • asString
  • create
  • equals
  • fromBytes
  • fromString
  • getChunkHash
  • getRepositoryId
  • getRepositoryKey
  • hashCode

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now