Codota Logo
DeltaBaseCache$Entry
Code IndexAdd Codota to your IDE (free)

How to use
DeltaBaseCache$Entry
in
org.eclipse.jgit.storage.dht

Best Java code snippets using org.eclipse.jgit.storage.dht.DeltaBaseCache$Entry (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

void put(ChunkKey key, int offset, int objectType, byte[] data) {
  if (data.length > maxByteCount)
    return; // Too large to cache.
  curByteCount += data.length;
  releaseMemory();
  int tableIdx = hash(key, offset);
  Slot e = new Slot(key, offset, data.length);
  e.data = new SoftReference<Entry>(new Entry(data, objectType));
  e.tableNext = table[tableIdx];
  table[tableIdx] = e;
  moveToHead(e);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

void put(ChunkKey key, int offset, int objectType, byte[] data) {
  if (data.length > maxByteCount)
    return; // Too large to cache.
  curByteCount += data.length;
  releaseMemory();
  int tableIdx = hash(key, offset);
  Slot e = new Slot(key, offset, data.length);
  e.data = new SoftReference<Entry>(new Entry(data, objectType));
  e.tableNext = table[tableIdx];
  table[tableIdx] = e;
  moveToHead(e);
}
org.eclipse.jgit.storage.dhtDeltaBaseCache$Entry

Most used methods

  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Option (scala)
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