Example #1
0
 public Builder fromQuota(Quota quota) {
   return new Builder()
       .metric(quota.getMetric())
       .usage(quota.getUsage())
       .limit(quota.getLimit());
 }
Example #2
0
 /** @see Project#getQuotas() */
 public Builder addQuota(String metric, double usage, double limit) {
   this.quotas.add(Quota.builder().metric(metric).usage(usage).limit(limit).build());
   return this;
 }