Tabnine Logo
CachedPackKey.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

/**
 * @param key
 * @return the key
 */
public static CachedPackKey fromString(String key) {
  int d = key.indexOf('.');
  ObjectId name = ObjectId.fromString(key.substring(0, d));
  ObjectId vers = ObjectId.fromString(key.substring(d + 1));
  return new CachedPackKey(name, vers);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

/**
 * @param key
 * @return the key
 */
public static CachedPackKey fromString(String key) {
  int d = key.indexOf('.');
  ObjectId name = ObjectId.fromString(key.substring(0, d));
  ObjectId vers = ObjectId.fromString(key.substring(d + 1));
  return new CachedPackKey(name, vers);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

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

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

/**
 * @param info
 * @return the key
 */
public static CachedPackKey fromInfo(CachedPackInfo info) {
  ObjectId name = ObjectId.fromString(info.getName());
  ObjectId vers = ObjectId.fromString(info.getVersion());
  return new CachedPackKey(name, vers);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

/**
 * @param info
 * @return the key
 */
public static CachedPackKey fromInfo(CachedPackInfo info) {
  ObjectId name = ObjectId.fromString(info.getName());
  ObjectId vers = ObjectId.fromString(info.getVersion());
  return new CachedPackKey(name, vers);
}
org.eclipse.jgit.storage.dhtCachedPackKey<init>

Popular methods of CachedPackKey

  • asBytes
  • asString
  • fromBytes
  • fromInfo

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Notification (javax.management)
  • JLabel (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now