congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Holder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.jgit.util.Holder
constructor

Best Java code snippets using org.eclipse.jgit.util.Holder.<init> (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

eolStreamTypeHolder = new Holder<EolStreamType>(type);
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.utilHolder<init>

Javadoc

Constructor for Holder.

Popular methods of Holder

  • get
  • set

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • findViewById (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JComboBox (javax.swing)
  • Option (scala)
  • Top Vim plugins
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