本文整理了Java中org.eclipse.jgit.annotations.NonNull.<init>()
方法的一些代码示例,展示了NonNull.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NonNull.<init>()
方法的具体详情如下:
包路径:org.eclipse.jgit.annotations.NonNull
类名称:NonNull
方法名:<init>
暂无
代码示例来源: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
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
@NonNull
private String toCacheKey(@NonNull String hostName, int port,
String userName) {
String key = hostName;
if (port > 0) {
key = key + ':' + Integer.toString(port);
}
if (userName != null && !userName.isEmpty()) {
key = userName + '@' + key;
}
return key;
}
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
private LsRefsV2Request(List<String> refPrefixes, boolean symrefs,
boolean peel, @Nullable String agent,
@NonNull List<String> serverOptions) {
this.refPrefixes = refPrefixes;
this.symrefs = symrefs;
this.peel = peel;
this.agent = agent;
this.serverOptions = requireNonNull(serverOptions);
}
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
@Override
public List<String> getHeaderFields(@NonNull String name) {
Map<String, List<String>> m = wrappedUrlConnection.getHeaderFields();
List<String> fields = mapValuesToListIgnoreCase(name, m);
return fields;
}
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
/**
* Get the names of all known remotes
*
* @return the names of all known remotes
* @since 3.4
*/
@NonNull
public Set<String> getRemoteNames() {
return getConfig()
.getSubsections(ConfigConstants.CONFIG_REMOTE_SECTION);
}
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
/**
* Create a new reader to read objects from {@link #getObjectDatabase()}.
*
* @return a new reader to read objects from {@link #getObjectDatabase()}.
*/
@NonNull
public ObjectReader newObjectReader() {
return getObjectDatabase().newReader();
}
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit
/** {@inheritDoc} */
@Override
@NonNull
public Ref getLeaf() {
Ref dst = getTarget();
while (dst.isSymbolic())
dst = dst.getTarget();
return dst;
}
内容来源于网络,如有侵权,请联系作者删除!