Skip to content

Commit edfda95

Browse files
committed
---
yaml --- r: 4573 b: refs/heads/logging-alpha c: 5a1d93f h: refs/heads/master i: 4571: 4ab3bd6
1 parent 7c63756 commit edfda95

27 files changed

Lines changed: 5831 additions & 1 deletion

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
1414
refs/heads/gcs-nio: 283aeaf15efdcf3621eb6859f05e55ad7764375d
15-
refs/heads/logging-alpha: be913a677b54bc3c917c7521b3ec4adb52ffbb37
15+
refs/heads/logging-alpha: 5a1d93f13ec0ccccc12080233643a117a7a1a6dd
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0
1818
refs/tags/v0.1.2: 3eb3fe866ba22487686048f45d927b8c8638ea3f
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.google.gcloud</groupId>
7+
<artifactId>gcloud-java-dns</artifactId>
8+
<packaging>jar</packaging>
9+
<name>GCloud Java DNS</name>
10+
<description>
11+
Java idiomatic client for Google Cloud DNS.
12+
</description>
13+
<parent>
14+
<groupId>com.google.gcloud</groupId>
15+
<artifactId>gcloud-java-pom</artifactId>
16+
<version>0.1.3-SNAPSHOT</version>
17+
</parent>
18+
<properties>
19+
<site.installationModule>gcloud-java-dns</site.installationModule>
20+
</properties>
21+
<dependencies>
22+
<dependency>
23+
<groupId>${project.groupId}</groupId>
24+
<artifactId>gcloud-java-core</artifactId>
25+
<version>${project.version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>com.google.apis</groupId>
29+
<artifactId>google-api-services-dns</artifactId>
30+
<version>v1-rev7-1.21.0</version>
31+
<scope>compile</scope>
32+
<exclusions>
33+
<exclusion>
34+
<groupId>com.google.guava</groupId>
35+
<artifactId>guava-jdk5</artifactId>
36+
</exclusion>
37+
<exclusion>
38+
<groupId>com.google.api-client</groupId>
39+
<artifactId>google-api-client</artifactId>
40+
</exclusion>
41+
</exclusions>
42+
</dependency>
43+
<dependency>
44+
<groupId>junit</groupId>
45+
<artifactId>junit</artifactId>
46+
<version>4.12</version>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.easymock</groupId>
51+
<artifactId>easymock</artifactId>
52+
<version>3.3</version>
53+
<scope>test</scope>
54+
</dependency>
55+
</dependencies>
56+
</project>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Copyright 2016 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.gcloud.dns;
18+
19+
import static com.google.common.base.Preconditions.checkNotNull;
20+
21+
import com.google.common.base.MoreObjects;
22+
import com.google.gcloud.spi.DnsRpc;
23+
24+
import java.io.Serializable;
25+
import java.util.Objects;
26+
27+
/**
28+
* A base class for options.
29+
*/
30+
abstract class AbstractOption implements Serializable {
31+
32+
private static final long serialVersionUID = -5912727967831484228L;
33+
private final Object value;
34+
private final DnsRpc.Option rpcOption;
35+
36+
AbstractOption(DnsRpc.Option rpcOption, Object value) {
37+
this.rpcOption = checkNotNull(rpcOption);
38+
this.value = value;
39+
}
40+
41+
Object value() {
42+
return value;
43+
}
44+
45+
DnsRpc.Option rpcOption() {
46+
return rpcOption;
47+
}
48+
49+
@Override
50+
public boolean equals(Object obj) {
51+
if (!(obj instanceof AbstractOption)) {
52+
return false;
53+
}
54+
AbstractOption other = (AbstractOption) obj;
55+
return Objects.equals(value, other.value) && Objects.equals(rpcOption, other.rpcOption);
56+
}
57+
58+
@Override
59+
public int hashCode() {
60+
return Objects.hash(value, rpcOption);
61+
}
62+
63+
@Override
64+
public String toString() {
65+
return MoreObjects.toStringHelper(this)
66+
.add("value", value)
67+
.add("rpcOption", rpcOption)
68+
.toString();
69+
}
70+
}

0 commit comments

Comments
 (0)