@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; }
@JsonGetter("endpoint") public String getEndpoint() { return this.getHttpMethod() + " - " + this.getUrl() + (queryString.toString().isEmpty() ? "" : "?" + queryString); }
@JsonGetter String getId() { return this.links.get("self"); }
@JsonGetter("text") public String getText() { return this.text; }
@JsonGetter("cross_streets") public String getCrossStreets() { return this.crossStreets; }
@JsonGetter public String getFormattedTokenDate() { return DATE_TIME_FORMATTER.format(this.tokenDate); }
@JsonGetter("key") public K getKey() { return _key; }
@JsonGetter("instanceStatus") public String getInstanceStatusString() { return instanceStatus.toString(); }
@JsonGetter("type") public String getType() { return type.getName(); }
@JsonGetter("direction") public int getDirectionValue() { return direction != null ? direction.value() : 0; }
@JsonGetter("Description") public String getDescription() { return description; }
@JsonGetter("Owner") public String getOwner() { return owner; }
@JsonGetter("latitude") public double getLatitude() { return this.latitude; }
@JsonGetter("key") public String getKey() { return _key; }
@JsonGetter("doublebass") public int getDoublebass() { return _doublebass; }
@JsonGetter("role") public AccountRole getRole() { return _accountRole; }
@JsonGetter("disabled") public boolean isDisabled() { return disabled; }
@JsonGetter public String getDatabaseName() { return databaseName; }
@JsonGetter("type") public InstrumentType getInstrumentType() { return _instrumentType; }
@JsonGetter public String getId() { return id; }
@JsonGetter("value") public V getValue() { return _value; }
@JsonGetter public String getConnection() { return connection; }
@JsonGetter public boolean isCreateIfNotExists() { return createIfNotExists; }
@JsonGetter public String getPath() { return path; }
@JsonGetter public String getQueueName() { return queueName; }
@JsonGetter("phone_number") public String getPhoneNumber() { return _phoneNumber; }
@JsonGetter public String getTopicName() { return topicName; }
@JsonGetter public String getSubscriptionName() { return subscriptionName; }
@JsonGetter public String getAccess() { return access; }
@JsonGetter("lastname") public String getLastname() { return _lastname; }
@JsonGetter public String getSchedule() { return schedule; }
@JsonGetter public String getTableName() { return tableName; }
@JsonGetter("violin1") public int getViolin1() { return _violin1; }
@JsonGetter("tube") public int getTube() { return _tube; }
@JsonGetter public String getTake() { return take; }