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

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

Best Java code snippets using org.eclipse.jgit.storage.dht.DeltaBaseCache$Slot (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$Slot

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Table (org.hibernate.mapping)
    A relational table
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