本文整理汇总了Java中com.fasterxml.jackson.annotation.JsonGetter类的典型用法代码示例。如果您正苦于以下问题:Java JsonGetter类的具体用法?Java JsonGetter怎么用?Java JsonGetter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonGetter类属于com.fasterxml.jackson.annotation包,在下文中一共展示了JsonGetter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSprints
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter
public List<ProjectBurndownSprint> getSprints() {
List<ProjectBurndownSprint> listOfSprints = new ArrayList<ProjectBurndownSprint>(sprints);
Collections.sort(listOfSprints, new Comparator<ProjectBurndownSprint>() {
public int compare(ProjectBurndownSprint o1, ProjectBurndownSprint o2) {
return o1.getNumber() - o2.getNumber();
}
});
for (int i = 0; i < listOfSprints.size(); i++) {
float coefficient = (float) i / (listOfSprints.size() - 1);
float ideal = initialPointsTotal - (coefficient * initialPointsTotal);
listOfSprints.get(i).setIdealPointsTotal(ideal);
}
return listOfSprints;
}
开发者ID:Estafet-LTD,项目名称:estafet-microservices-scrum-api-project-burndown,代码行数:16,代码来源:ProjectBurndown.java
示例2: getEndpoint
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("endpoint")
public String getEndpoint() {
return this.getHttpMethod() + " - " + this.getUrl()
+ (queryString.toString().isEmpty() ? "" : "?" + queryString);
}
示例3: getId
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter
String getId() {
return this.links.get("self");
}
示例4: getText
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("text")
public String getText() {
return this.text;
}
示例5: getCrossStreets
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("cross_streets")
public String getCrossStreets() {
return this.crossStreets;
}
示例6: getFormattedTokenDate
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter
public String getFormattedTokenDate() {
return DATE_TIME_FORMATTER.format(this.tokenDate);
}
示例7: getKey
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("key")
public K getKey() {
return _key;
}
示例8: getInstanceStatusString
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("instanceStatus")
public String getInstanceStatusString() {
return instanceStatus.toString();
}
示例9: getType
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("type")
public String getType() {
return type.getName();
}
示例10: getDirectionValue
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("direction")
public int getDirectionValue() {
return direction != null ? direction.value() : 0;
}
示例11: getDescription
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("Description")
public String getDescription() {
return description;
}
示例12: getOwner
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("Owner")
public String getOwner() {
return owner;
}
示例13: getLatitude
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("latitude")
public double getLatitude() {
return this.latitude;
}
示例14: getKey
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("key")
public String getKey() {
return _key;
}
示例15: getDoublebass
import com.fasterxml.jackson.annotation.JsonGetter; //导入依赖的package包/类
@JsonGetter("doublebass")
public int getDoublebass() {
return _doublebass;
}