congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Holder.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
org.eclipse.jgit.util.Holder

Best Java code snippets using org.eclipse.jgit.util.Holder.get (Showing top 7 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Get the clean filter command for the current entry.
 *
 * @return the clean filter command for the current entry or
 *         <code>null</code> if no such command is defined
 * @throws java.io.IOException
 * @since 4.2
 */
public String getCleanFilterCommand() throws IOException {
  if (cleanFilterCommandHolder == null) {
    String cmd = null;
    if (state.walk != null) {
      cmd = state.walk
          .getFilterCommand(Constants.ATTR_FILTER_TYPE_CLEAN);
    }
    cleanFilterCommandHolder = new Holder<>(cmd);
  }
  return cleanFilterCommandHolder.get();
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * @param opType
 *            The operationtype (checkin/checkout) which should be used
 * @return the eol stream type for the current entry or <code>null</code> if
 *         it cannot be determined. When state or state.walk is null or the
 *         {@link TreeWalk} is not based on a {@link Repository} then null
 *         is returned.
 * @throws IOException
 */
private EolStreamType getEolStreamType(OperationType opType)
    throws IOException {
  if (eolStreamTypeHolder == null) {
    EolStreamType type=null;
    if (state.walk != null) {
      type = state.walk.getEolStreamType(opType);
    } else {
      switch (getOptions().getAutoCRLF()) {
      case FALSE:
        type = EolStreamType.DIRECT;
        break;
      case TRUE:
      case INPUT:
        type = EolStreamType.AUTO_LF;
        break;
      }
    }
    eolStreamTypeHolder = new Holder<>(type);
  }
  return eolStreamTypeHolder.get();
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * @return the clean filter command for the current entry or
 *         <code>null</code> if no such command is defined
 * @throws IOException
 * @since 4.2
 */
public String getCleanFilterCommand() throws IOException {
  if (cleanFilterCommandHolder == null) {
    String cmd = null;
    if (state.walk != null) {
      cmd = state.walk
          .getFilterCommand(Constants.ATTR_FILTER_TYPE_CLEAN);
    }
    cleanFilterCommandHolder = new Holder<String>(cmd);
  }
  return cleanFilterCommandHolder.get();
}
origin: berlam/github-bucket

/**
 * Get the clean filter command for the current entry.
 *
 * @return the clean filter command for the current entry or
 *         <code>null</code> if no such command is defined
 * @throws java.io.IOException
 * @since 4.2
 */
public String getCleanFilterCommand() throws IOException {
  if (cleanFilterCommandHolder == null) {
    String cmd = null;
    if (state.walk != null) {
      cmd = state.walk
          .getFilterCommand(Constants.ATTR_FILTER_TYPE_CLEAN);
    }
    cleanFilterCommandHolder = new Holder<>(cmd);
  }
  return cleanFilterCommandHolder.get();
}
origin: berlam/github-bucket

/**
 * @param opType
 *            The operationtype (checkin/checkout) which should be used
 * @return the eol stream type for the current entry or <code>null</code> if
 *         it cannot be determined. When state or state.walk is null or the
 *         {@link TreeWalk} is not based on a {@link Repository} then null
 *         is returned.
 * @throws IOException
 */
private EolStreamType getEolStreamType(OperationType opType)
    throws IOException {
  if (eolStreamTypeHolder == null) {
    EolStreamType type=null;
    if (state.walk != null) {
      type = state.walk.getEolStreamType(opType);
    } else {
      switch (getOptions().getAutoCRLF()) {
      case FALSE:
        type = EolStreamType.DIRECT;
        break;
      case TRUE:
      case INPUT:
        type = EolStreamType.AUTO_LF;
        break;
      }
    }
    eolStreamTypeHolder = new Holder<>(type);
  }
  return eolStreamTypeHolder.get();
}
origin: sonia.jgit/org.eclipse.jgit

return eolStreamTypeHolder.get();
origin: bozaro/git-as-svn

 @Override
 protected void processCommand(@NotNull SessionContext context, @NotNull Params args) throws IOException, SVNException {
  final SvnServerWriter writer = context.getWriter();
  final String path = context.getRepositoryPath(args.path);

  final Holder<LockDesc> holder = context.getRepository().wrapLockRead((lockManager) -> new Holder<>(lockManager.getLock(context.getRepositoryPath(path))));
  writer.listBegin()
    .word("success")
    .listBegin()
    .listBegin();
  LockCmd.writeLock(writer, holder.get());
  writer
    .listEnd()
    .listEnd()
    .listEnd();
 }
}
org.eclipse.jgit.utilHolderget

Javadoc

Get the value held by this org.eclipse.jgit.util.Holder

Popular methods of Holder

  • <init>
  • set

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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