本文整理匯總了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;
}