List of usage examples for org.eclipse.jgit.internal.storage.pack PackExt newPackExt
public synchronized static PackExt newPackExt(String ext)
From source file:com.benhumphreys.jgitcassandra.store.DescMapper.java
License:Apache License
/** * The PackExt class defines a number of static instances *///from w w w . ja v a 2 s.c o m private static PackExt lookupExt(String extStr) { for (PackExt ext : PackExt.values()) { if (ext.getExtension().equals(extStr)) { return ext; } } // If we get here, the extension does not exist so create it. It gets // added to the list of known extensions in PackExt, so next time the // lookup will be successful return PackExt.newPackExt(extStr); }