本文整理汇总了Java中org.jclouds.javax.annotation.Nullable类的典型用法代码示例。如果您正苦于以下问题:Java Nullable类的具体用法?Java Nullable怎么用?Java Nullable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Nullable类属于org.jclouds.javax.annotation包,在下文中一共展示了Nullable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({ "start", "limit", "size",
"nextPageStart", "isLastPage", "values", "errors" })
public static RepositoryPage create(final int start,
final int limit,
final int size,
final int nextPageStart,
final boolean isLastPage,
@Nullable final List<Repository> values,
@Nullable final List<Error> errors) {
return new AutoValue_RepositoryPage(start,
limit,
size,
nextPageStart,
isLastPage,
BitbucketUtils.nullToEmpty(values),
BitbucketUtils.nullToEmpty(errors));
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:19,代码来源:RepositoryPage.java
示例2: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({"start", "limit", "size",
"nextPageStart", "isLastPage", "values", "errors"})
public static ParticipantsPage create(final int start,
final int limit,
final int size,
final int nextPageStart,
final boolean isLastPage,
@Nullable final List<Participants> values,
@Nullable final List<Error> errors) {
return new AutoValue_ParticipantsPage(start,
limit,
size,
nextPageStart,
isLastPage,
BitbucketUtils.nullToEmpty(values),
BitbucketUtils.nullToEmpty(errors));
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:19,代码来源:ParticipantsPage.java
示例3: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({ "mergeConfig", "requiredAllApprovers",
"requiredAllTasksComplete", "requiredApprovers",
"requiredSuccessfulBuilds", "errors" })
public static PullRequestSettings create(final MergeConfig mergeConfig,
final Boolean requiredAllApprovers,
final Boolean requiredAllTasksComplete,
final Long requiredApprovers,
final Long requiredSuccessfulBuilds,
@Nullable final List<Error> errors) {
return new AutoValue_PullRequestSettings(BitbucketUtils.nullToEmpty(errors),
mergeConfig,
requiredAllApprovers,
requiredAllTasksComplete,
requiredApprovers,
requiredSuccessfulBuilds);
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:18,代码来源:PullRequestSettings.java
示例4: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({"id", "type", "matcher", "users", "groups", "accessKeys"})
public static BranchRestriction create(final Long id,
final BranchRestrictionEnumType type,
final Matcher matcher,
final List<User> users,
final List<String> groups,
@Nullable final List<AccessKey> accessKeys) {
final List<Long> accessKeyId = new ArrayList<>();
if (accessKeys != null) {
for (final AccessKey accessKey : accessKeys) {
accessKeyId.add(accessKey.key().id());
}
}
return BranchRestriction.createWithId(id, type, matcher, users, groups, accessKeyId);
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:17,代码来源:BranchRestriction.java
示例5: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({ "value", "errors" })
public static RawContent create(@Nullable final String value,
final List<Error> errors) {
return new AutoValue_RawContent(value,
BitbucketUtils.nullToEmpty(errors));
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:8,代码来源:RawContent.java
示例6: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({"id", "createdDate", "user", "action", "commentAction",
"comment", "fromHash", "previousFromHash", "previousToHash",
"toHash", "added", "removed", "addedReviewers", "removedReviewers"})
public static Activities create(final long id,
final long createdDate,
final User user,
final ActivitiesType action,
final String commentAction,
final Comments comment,
@Nullable final String fromHash,
@Nullable final String previousFromHash,
@Nullable final String previousToHash,
@Nullable final String toHash,
@Nullable final ActivitiesCommit added,
@Nullable final ActivitiesCommit removed,
@Nullable final List<User> addedReviewers,
@Nullable final List<User> removedReviewers) {
return new AutoValue_Activities(id,
createdDate,
user,
action,
commentAction,
comment,
fromHash,
previousFromHash,
previousToHash,
toHash,
added,
removed,
BitbucketUtils.nullToEmpty(addedReviewers),
BitbucketUtils.nullToEmpty(removedReviewers));
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:34,代码来源:Activities.java
示例7: list
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("branch:list")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45295356999632"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/api/{jclouds.api-version}/projects/{project}/repos/{repo}/branches")
@Fallback(BitbucketFallbacks.BranchPageOnError.class)
@GET
BranchPage list(@PathParam("project") String project,
@PathParam("repo") String repo,
@Nullable @QueryParam("base") String base,
@Nullable @QueryParam("details") String details,
@Nullable @QueryParam("filterText") String filterText,
@Nullable @QueryParam("orderBy") String orderBy,
@Nullable @QueryParam("start") Integer start,
@Nullable @QueryParam("limit") Integer limit);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:15,代码来源:BranchApi.java
示例8: get
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("commits:get")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45888279116176"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{project}/repos/{repo}/commits/{commitId}")
@Fallback(BitbucketFallbacks.CommitOnError.class)
@GET
Commit get(@PathParam("project") String project,
@PathParam("repo") String repo,
@PathParam("commitId") String commitId,
@Nullable @QueryParam("path") String path);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:11,代码来源:CommitsApi.java
示例9: changes
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("pull-request:changes")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45888279438576"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/changes")
@Fallback(ChangePageOnError.class)
@GET
ChangePage changes(@PathParam("project") String project,
@PathParam("repo") String repo,
@PathParam("pullRequestId") int pullRequestId,
@Nullable @QueryParam("withComments") Boolean withComments,
@Nullable @QueryParam("limit") Integer limit,
@Nullable @QueryParam("start") Integer start);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:13,代码来源:PullRequestApi.java
示例10: commits
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("pull-request:commits")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45888278089280"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/commits")
@Fallback(CommitPageOnError.class)
@GET
CommitPage commits(@PathParam("project") String project,
@PathParam("repo") String repo,
@PathParam("pullRequestId") int pullRequestId,
@Nullable @QueryParam("withCounts") Boolean withCounts,
@Nullable @QueryParam("limit") Integer limit,
@Nullable @QueryParam("start") Integer start);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:13,代码来源:PullRequestApi.java
示例11: listFiles
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("file:list-files")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/5.1.0/bitbucket-rest.html#idm45588159557712"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/rest/api/{jclouds.api-version}/projects/{project}/repos/{repo}/files")
@Fallback(BitbucketFallbacks.FilesPageOnError.class)
@GET
FilesPage listFiles(@PathParam("project") String project,
@PathParam("repo") String repo,
@Nullable @QueryParam("at") String commitIdOrRef,
@Nullable @QueryParam("start") Integer start,
@Nullable @QueryParam("limit") Integer limit);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:12,代码来源:FileApi.java
示例12: list
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("repository:list")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/latest/bitbucket-rest.html#idm45888277593152"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{project}/repos")
@Fallback(BitbucketFallbacks.RepositoryPageOnError.class)
@GET
RepositoryPage list(@PathParam("project") String project,
@Nullable @QueryParam("start") Integer start,
@Nullable @QueryParam("limit") Integer limit);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:10,代码来源:RepositoryApi.java
示例13: listPermissionsByUser
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("repository:list-permissions-by-user")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/5.0.0/bitbucket-rest.html#idm45659054938032"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/{project}/repos/{repo}/permissions/users")
@Fallback(BitbucketFallbacks.PermissionsPageOnError.class)
@GET
PermissionsPage listPermissionsByUser(@PathParam("project") String project,
@PathParam("repo") String repo,
@Nullable @QueryParam("start") Integer start,
@Nullable @QueryParam("limit") Integer limit);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:11,代码来源:RepositoryApi.java
示例14: listUsersByGroup
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Named("admin:list-user-by-group")
@Documentation({"https://developer.atlassian.com/static/rest/bitbucket-server/4.14.4/bitbucket-rest.html#idm46478323815824"})
@Consumes(MediaType.APPLICATION_JSON)
@Path("/groups/more-members")
@Fallback(BitbucketFallbacks.UserPageOnError.class)
@GET
UserPage listUsersByGroup(@QueryParam("context") String context,
@Nullable @QueryParam("filter") String filter,
@Nullable @QueryParam("start") Integer start,
@Nullable @QueryParam("limit") Integer limit);
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:11,代码来源:AdminApi.java
示例15: BitbucketClient
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
/**
* Create an BitbucketClient using the passed in endpoint and Basic credential String.
*
* @param endPoint URL of Bitbucket instance
* @param basicCredentials the optional credentials for the Bitbucket instance
*/
@Deprecated //Constructor will be deleted in favor of 'String, BitbucketCredentials' version in 2.x releases
public BitbucketClient(@Nullable final String endPoint, @Nullable final String basicCredentials) {
this.endPoint = endPoint != null
? endPoint
: BitbucketUtils.inferEndpoint();
this.credentials = basicCredentials != null
? BitbucketAuthentication.builder().credentials(basicCredentials).build()
: BitbucketUtils.inferCredentials();
this.bitbucketApi = createApi(this.endPoint(), credentials);
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:17,代码来源:BitbucketClient.java
示例16: create
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@SerializedNames({"id", "text", "label"})
public static Key create(@Nullable final Long id,
final String text,
final String label) {
return new AutoValue_Key(id, text, label);
}
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:7,代码来源:Key.java
示例17: configFormKey
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Nullable
public abstract String configFormKey();
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:3,代码来源:HookDetails.java
示例18: displayId
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Nullable
public abstract String displayId();
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:3,代码来源:Tag.java
示例19: commentAction
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Nullable
public abstract String commentAction();
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:3,代码来源:Activities.java
示例20: summaryMessage
import org.jclouds.javax.annotation.Nullable; //导入依赖的package包/类
@Nullable
public abstract String summaryMessage();
开发者ID:cdancy,项目名称:bitbucket-rest,代码行数:3,代码来源:Veto.java
注:本文中的org.jclouds.javax.annotation.Nullable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论