> +      if (getClass() != obj.getClass())
> +         return false;
> +      ContentRange other = (ContentRange) obj;
> +      return Objects.equal(this.from, other.to) && Objects.equal(this.from, 
> other.to);
> +   }
> +
> +   @Override
> +   public String toString() {
> +      return from + "-" + to;
> +   }
> +
> +   public static class Builder {
> +      public static ContentRange fromString(String contentRangeString) {
> +         if (!contentRangeString.matches("[0-9]+-[0-9]+"))
> +            return null;
> +         Iterator<String> strings = 
> Splitter.on('-').split(contentRangeString).iterator();

Easier to just call String.split('-', 2)?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/18/files#r13948534

Reply via email to