Sha256: 7473cdbb5a975aa4f2067b09d244a6f73e29e3df288ceef0158157a66659347f
Contents?: true
Size: 1019 Bytes
Versions: 5
Compression:
Stored size: 1019 Bytes
Contents
package com.treasuredata.api.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Objects; public class TDDatabase { private String name; // "permission" field is also available but not necessary yet @JsonCreator public TDDatabase( @JsonProperty("name") String name) { this.name = name; } @JsonProperty public String getName() { return name; } public boolean isWritable() { // TODO not implemented yet return true; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } TDDatabase other = (TDDatabase) obj; return Objects.equal(this.name, other.name); } @Override public int hashCode() { return Objects.hashCode(name); } }
Version data entries
5 entries across 5 versions & 1 rubygems