org.eclipse.jgit.annotations.NonNull类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.eclipse.jgit.annotations.NonNull类的一些代码示例,展示了NonNull类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NonNull类的具体详情如下:
包路径:org.eclipse.jgit.annotations.NonNull
类名称:NonNull

NonNull介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
   * How was this ref obtained?
   * <p>
   * The current storage model of a Ref may influence how the ref must be
   * updated or deleted from the repository.
   *
   * @return type of ref.
   */
  @NonNull
  Storage getStorage();
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
@NonNull
public String getName() {
  return name;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

@Override
@NonNull
public ObjectId getPeeledObjectId() {
  return peeledObjectId;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
@NonNull
public Storage getStorage() {
  return storage;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * @return Git file mode for this file (e.g. executable or regular)
 */
@NonNull
public FileMode getFileMode() {
  return fileMode;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
@NonNull
public String getName() {
  return name;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
@NonNull
public Ref getTarget() {
  return this;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * @return object ids received in the "have" lines
 */
@NonNull
List<ObjectId> getPeerHas() {
  return peerHas;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Get the object database which stores this repository's data.
 *
 * @return the object database which stores this repository's data.
 */
@NonNull
public abstract ObjectDatabase getObjectDatabase();

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Create a new {@link org.eclipse.jgit.attributes.AttributesNodeProvider}.
 *
 * @return a new {@link org.eclipse.jgit.attributes.AttributesNodeProvider}.
 *         This {@link org.eclipse.jgit.attributes.AttributesNodeProvider}
 *         is lazy loaded only once. It means that it will not be updated
 *         after loading. Prefer creating new instance for each use.
 * @since 4.2
 */
@NonNull
public abstract AttributesNodeProvider createAttributesNodeProvider();

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Get the currently configured commit filter.
 *
 * @return the current filter. Never null as a filter is always needed.
 */
@NonNull
public RevFilter getRevFilter() {
  return filter;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
@NonNull
public Ref getTarget() {
  return target;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
@NonNull
public Storage getStorage() {
  return Storage.LOOSE;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Getter for filterdProjects.
 *
 * @return filtered projects list reference, never null
 */
@NonNull
public List<RepoProject> getFilteredProjects() {
  return filteredProjects;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * @return list of references received in "want-ref" lines
 */
@NonNull
List<String> getWantedRefs() {
  return wantedRefs;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

LoosePeeledTag(FileSnapshot snapshot, @NonNull String refName,
    @NonNull ObjectId id, @NonNull ObjectId p) {
  super(LOOSE, refName, id, p);
  this.snapShot = snapshot;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

LooseNonTag(FileSnapshot snapshot, @NonNull String refName,
    @NonNull ObjectId id) {
  super(LOOSE, refName, id);
  this.snapShot = snapshot;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

LooseUnpeeled(FileSnapshot snapShot, @NonNull String refName,
    @NonNull ObjectId id) {
  super(LOOSE, refName, id);
  this.snapShot = snapShot;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Get listeners observing only events on this repository.
 *
 * @return listeners observing only events on this repository.
 */
@NonNull
public ListenerList getListenerList() {
  return myListeners;
}

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Get the reference database which stores the reference namespace.
 *
 * @return the reference database which stores the reference namespace.
 */
@NonNull
public abstract RefDatabase getRefDatabase();

相关文章

NonNull类方法